summaryrefslogtreecommitdiff
path: root/Mailman/OutgoingQueue.py
diff options
context:
space:
mode:
authorbwarsaw1999-01-05 23:10:49 +0000
committerbwarsaw1999-01-05 23:10:49 +0000
commiteb2a21d2971cadc2e7b2a06b34b485900c745f6e (patch)
treee0b6e9a49a1803a086090d67e18b9edbe5b256a1 /Mailman/OutgoingQueue.py
parent05e9c5f67ecf1efb9e90b145e9e1038ce77e5514 (diff)
downloadmailman-eb2a21d2971cadc2e7b2a06b34b485900c745f6e.tar.gz
mailman-eb2a21d2971cadc2e7b2a06b34b485900c745f6e.tar.zst
mailman-eb2a21d2971cadc2e7b2a06b34b485900c745f6e.zip
processQueue(): We can pretty much guarantee that if an os.error is
raised from the os.stat() call, the value will unpack into a two-tuple. So just do the unpacking in place, check the code and use Utils.reraise() if it wasn't what we expected.
Diffstat (limited to 'Mailman/OutgoingQueue.py')
-rw-r--r--Mailman/OutgoingQueue.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/Mailman/OutgoingQueue.py b/Mailman/OutgoingQueue.py
index 776deffcf..5ab7b8358 100644
--- a/Mailman/OutgoingQueue.py
+++ b/Mailman/OutgoingQueue.py
@@ -99,17 +99,12 @@ def processQueue():
#
try:
st = os.stat(full_fname)
- except os.error, rest:
- try:
- code, msg = rest
- except ValueError:
- code = ""
- msg = str(rest)
+ except os.error, (code, msg):
if code == errno.ENOENT:
# file does not exist, it's already been dequeued
continue
else:
- raise os.error, rest
+ Utils.reraise()
#
# if the file is not a deferred queue message, we check to see if the
# creation time was too long ago and process it anyway. If the