diff options
Diffstat (limited to 'Mailman/LockFile.py')
| -rw-r--r-- | Mailman/LockFile.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/LockFile.py b/Mailman/LockFile.py index 5c3426b02..c599e066e 100644 --- a/Mailman/LockFile.py +++ b/Mailman/LockFile.py @@ -404,8 +404,11 @@ class LockFile: # unlink their temp file -- this doesn't wreck the locking algorithm, # but will leave temp file turds laying around, a minor inconvenience. winner = self.__read() - if winner: - os.unlink(winner) + try: + if winner: + os.unlink(winner) + except OSError, e: + if e.errno <> errno.ENOENT: raise # Now remove the global lockfile, which actually breaks the lock. try: os.unlink(self.__lockfile) |
