From 191dd7b5ed48d3e03ed85d17235c692ffeefca42 Mon Sep 17 00:00:00 2001 From: tkikuchi <> Date: Fri, 3 Feb 2006 07:55:26 +0000 Subject: variable name: it is not a floating number. (time tuple) --- Mailman/Handlers/Scrubber.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Mailman/Handlers') diff --git a/Mailman/Handlers/Scrubber.py b/Mailman/Handlers/Scrubber.py index 807e8cd6..712280a7 100644 --- a/Mailman/Handlers/Scrubber.py +++ b/Mailman/Handlers/Scrubber.py @@ -111,9 +111,9 @@ class ScrubberGenerator(Generator): Generator._write_headers(self, msg) -def safe_strftime(fmt, floatsecs): +def safe_strftime(fmt, t): try: - return time.strftime(fmt, floatsecs) + return time.strftime(fmt, t) except (TypeError, ValueError, OverflowError): return None -- cgit v1.2.3