diff options
Diffstat (limited to 'Mailman/Handlers/Scrubber.py')
-rw-r--r-- | Mailman/Handlers/Scrubber.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |