diff options
author | tkikuchi <> | 2006-02-03 07:55:26 +0000 |
---|---|---|
committer | tkikuchi <> | 2006-02-03 07:55:26 +0000 |
commit | 191dd7b5ed48d3e03ed85d17235c692ffeefca42 (patch) | |
tree | 566caaeca0f3ed738e3937efcdd517dd04b84969 /Mailman/Handlers | |
parent | 85115197962c27c9ebcb40e20696e0be28726caa (diff) | |
download | mailman2-191dd7b5ed48d3e03ed85d17235c692ffeefca42.tar.gz mailman2-191dd7b5ed48d3e03ed85d17235c692ffeefca42.tar.xz mailman2-191dd7b5ed48d3e03ed85d17235c692ffeefca42.zip |
variable name: it is not a floating number. (time tuple)
Diffstat (limited to 'Mailman/Handlers')
-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 |