aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2013-04-06 17:57:32 -0700
committerMark Sapiro <msapiro@value.net>2013-04-06 17:57:32 -0700
commit5c108a6559c6a39beaed2600871b02d0a54edd25 (patch)
treecbb50b53cb758603e798d53d19a584f90a4e324a /Mailman
parent9cdad15508bbc5a77e36edfd707dcc8c2140a340 (diff)
downloadmailman2-5c108a6559c6a39beaed2600871b02d0a54edd25.tar.gz
mailman2-5c108a6559c6a39beaed2600871b02d0a54edd25.tar.xz
mailman2-5c108a6559c6a39beaed2600871b02d0a54edd25.zip
The Switchboard.finish() method now logs the text of the exception when
it fails to unlink/preserve a .bak file. (LP: 1165589)
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Queue/Switchboard.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Queue/Switchboard.py b/Mailman/Queue/Switchboard.py
index bd1cd357..a2c31263 100644
--- a/Mailman/Queue/Switchboard.py
+++ b/Mailman/Queue/Switchboard.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2008 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2013 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -184,8 +184,8 @@ class Switchboard:
else:
os.unlink(bakfile)
except EnvironmentError, e:
- syslog('error', 'Failed to unlink/preserve backup file: %s',
- bakfile)
+ syslog('error', 'Failed to unlink/preserve backup file: %s\n%s',
+ bakfile, e)
def files(self, extension='.pck'):
times = {}