diff options
author | bwarsaw <> | 2003-01-10 20:31:36 +0000 |
---|---|---|
committer | bwarsaw <> | 2003-01-10 20:31:36 +0000 |
commit | cc4958af52f4ca595dfde7e4924cb1c373df8435 (patch) | |
tree | a7d6b3772ee6e28ad9be7709b502431d7f6f14f8 /Mailman/Handlers/Scrubber.py | |
parent | 572b3840d506de51200948112544997317f37e0a (diff) | |
download | mailman2-cc4958af52f4ca595dfde7e4924cb1c373df8435.tar.gz mailman2-cc4958af52f4ca595dfde7e4924cb1c373df8435.tar.xz mailman2-cc4958af52f4ca595dfde7e4924cb1c373df8435.zip |
safe_strftime(): Watch out for TypeError coming back from strftime().
Diffstat (limited to 'Mailman/Handlers/Scrubber.py')
-rw-r--r-- | Mailman/Handlers/Scrubber.py | 2 |
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 |