From cc4958af52f4ca595dfde7e4924cb1c373df8435 Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Fri, 10 Jan 2003 20:31:36 +0000 Subject: safe_strftime(): Watch out for TypeError coming back from strftime(). --- Mailman/Handlers/Scrubber.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3