diff options
Diffstat (limited to 'Mailman/MTA/Postfix.py')
| -rw-r--r-- | Mailman/MTA/Postfix.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/MTA/Postfix.py b/Mailman/MTA/Postfix.py index 268d2f325..c8ee211ea 100644 --- a/Mailman/MTA/Postfix.py +++ b/Mailman/MTA/Postfix.py @@ -257,7 +257,8 @@ def _do_create(mlist, textfile, func): try: fp = open(textfile, 'r+') except IOError, e: - if e.errno <> errno.ENOENT: raise + if e.errno <> errno.ENOENT: + raise fp = open(textfile, 'w+') try: func(mlist, fp) @@ -300,7 +301,8 @@ def _do_remove(mlist, textfile): try: infp = open(textfile) except IOError, e: - if e.errno <> errno.ENOENT: raise + if e.errno <> errno.ENOENT: + raise # Otherwise, there's no text file to filter so we're done. return try: |
