diff options
| author | bwarsaw | 2002-01-04 07:34:32 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-01-04 07:34:32 +0000 |
| commit | 71d7ea1c76631995d9d0b38808726d65d0df1747 (patch) | |
| tree | 6a23b2bfedb8a0a30d71548b0d8822380b41ee46 | |
| parent | e5ced13fcf12272d2cafad41ebd6eab311bb81ac (diff) | |
| download | mailman-71d7ea1c76631995d9d0b38808726d65d0df1747.tar.gz mailman-71d7ea1c76631995d9d0b38808726d65d0df1747.tar.zst mailman-71d7ea1c76631995d9d0b38808726d65d0df1747.zip | |
| -rw-r--r-- | Mailman/Archiver/Archiver.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Mailman/Archiver/Archiver.py b/Mailman/Archiver/Archiver.py index 820167d81..d66b8cd30 100644 --- a/Mailman/Archiver/Archiver.py +++ b/Mailman/Archiver/Archiver.py @@ -88,14 +88,17 @@ class Archiver: # which has o+rx permissions. Private archives do not have the # symbolic links. omask = os.umask(0) + listname = self.internal_name(); try: try: - listname = self.internal_name(); os.mkdir(self.archive_dir()+'.mbox', 02775) - # We also create an empty pipermail archive directory - # (pipermail would create it, but in the meantime lists with - # no archives return errors when you browse the non existant - # archive dir). -- Marc + except OSError, e: + if e.errno <> errno.EEXIST: raise + # We also create an empty pipermail archive directory into + # which we'll drop an empty index.html file into. This is so + # that lists that have not yet received a posting have + # /something/ as their index.html, and don't just get a 404. + try: os.mkdir(self.archive_dir(), 02775) except OSError, e: if e.errno <> errno.EEXIST: raise |
