aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authorbwarsaw <>2003-01-10 20:31:36 +0000
committerbwarsaw <>2003-01-10 20:31:36 +0000
commitcc4958af52f4ca595dfde7e4924cb1c373df8435 (patch)
treea7d6b3772ee6e28ad9be7709b502431d7f6f14f8 /Mailman
parent572b3840d506de51200948112544997317f37e0a (diff)
downloadmailman2-cc4958af52f4ca595dfde7e4924cb1c373df8435.tar.gz
mailman2-cc4958af52f4ca595dfde7e4924cb1c373df8435.tar.xz
mailman2-cc4958af52f4ca595dfde7e4924cb1c373df8435.zip
safe_strftime(): Watch out for TypeError coming back from strftime().
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Handlers/Scrubber.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/Handlers/Scrubber.py b/Mailman/Handlers/Scrubber.py
index 5dabadf3..a1e0194f 100644
--- a/Mailman/Handlers/Scrubber.py
+++ b/Mailman/Handlers/Scrubber.py
@@ -75,7 +75,7 @@ class ScrubberGenerator(Generator):
def safe_strftime(fmt, floatsecs):
try:
return time.strftime(fmt, floatsecs)
- except ValueError:
+ except (TypeError, ValueError):
return None