aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/MTA/Postfix.py
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2018-01-12 21:44:15 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2018-01-12 21:44:15 +0900
commit16572087609fc9c9b9f55c26c9c55985fbcad804 (patch)
treed0af2f969c000db00909f66f9501634c43c8df26 /Mailman/MTA/Postfix.py
parentadb3d9035314760b62d92bda4a41991b7420360f (diff)
parentc4a7c961798353841a75c862a6fe9e22529db45d (diff)
downloadmailman2-16572087609fc9c9b9f55c26c9c55985fbcad804.tar.gz
mailman2-16572087609fc9c9b9f55c26c9c55985fbcad804.tar.xz
mailman2-16572087609fc9c9b9f55c26c9c55985fbcad804.zip
sync with lp:mailman/2.1 Rev 1734
Diffstat (limited to '')
-rw-r--r--Mailman/MTA/Postfix.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Mailman/MTA/Postfix.py b/Mailman/MTA/Postfix.py
index b829ad6e..6fa3f14a 100644
--- a/Mailman/MTA/Postfix.py
+++ b/Mailman/MTA/Postfix.py
@@ -56,7 +56,12 @@ def _update_maps():
if (stat[ST_MODE] & targetmode) <> targetmode:
os.chmod(file, stat[ST_MODE] | targetmode)
dbfile = file + '.db'
- stat = os.stat(dbfile)
+ try:
+ stat = os.stat(dbfile)
+ except OSError, e:
+ if e.errno <> errno.ENOENT:
+ raise
+ return
if (stat[ST_MODE] & targetmode) <> targetmode:
os.chmod(dbfile, stat[ST_MODE] | targetmode)
user = mm_cfg.MAILMAN_USER