diff options
| author | viega | 1998-06-02 09:54:25 +0000 |
|---|---|---|
| committer | viega | 1998-06-02 09:54:25 +0000 |
| commit | 20abd4865f1f3e8be158e7cf139702e624ae7b88 (patch) | |
| tree | d686a1abc39ee13857a66b32374854f45e79216b /modules/maillist.py | |
| parent | a8a6c0a3f9dde84164884d1bb4080451f160a4b9 (diff) | |
| download | mailman-20abd4865f1f3e8be158e7cf139702e624ae7b88.tar.gz mailman-20abd4865f1f3e8be158e7cf139702e624ae7b88.tar.zst mailman-20abd4865f1f3e8be158e7cf139702e624ae7b88.zip | |
Diffstat (limited to 'modules/maillist.py')
| -rw-r--r-- | modules/maillist.py | 5 |
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) |
