summaryrefslogtreecommitdiff
path: root/modules/maillist.py
diff options
context:
space:
mode:
authorviega1998-06-02 09:54:25 +0000
committerviega1998-06-02 09:54:25 +0000
commit20abd4865f1f3e8be158e7cf139702e624ae7b88 (patch)
treed686a1abc39ee13857a66b32374854f45e79216b /modules/maillist.py
parenta8a6c0a3f9dde84164884d1bb4080451f160a4b9 (diff)
downloadmailman-20abd4865f1f3e8be158e7cf139702e624ae7b88.tar.gz
mailman-20abd4865f1f3e8be158e7cf139702e624ae7b88.tar.zst
mailman-20abd4865f1f3e8be158e7cf139702e624ae7b88.zip
Diffstat (limited to 'modules/maillist.py')
-rw-r--r--modules/maillist.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/maillist.py b/modules/maillist.py
index 10b8a3cfb..dc6fb7a96 100644
--- a/modules/maillist.py
+++ b/modules/maillist.py
@@ -525,8 +525,9 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
fname_last = fname + ".last"
if os.path.exists(fname_last):
os.unlink(fname_last)
- os.link(fname, fname_last)
- os.unlink(fname)
+ if os.path.exists(fname):
+ os.link(fname, fname_last)
+ os.unlink(fname)
file = open(fname, 'w')
finally:
os.umask(ou)