[Mailman-Users] "OverflowError: long int too large to convert to int"

Tokio Kikuchi tkikuchi at is.kochi-u.ac.jp
Thu Sep 8 01:45:22 CEST 2005


Marcel Meyer wrote:

> Some lists are no longer (worked before - no configuration or software
> update occured) delivered. All messages are shunted. The errorlog says
> the following:
> 
> ****************************************
> [...]
> OverflowError: long int too large to convert to int
> 

>   File "/usr/local/mailman/Mailman/Handlers/Scrubber.py", line 131, in calculate_attachments_dir
>     datedir = safe_strftime(fmt, now)
>   File "/usr/local/mailman/Mailman/Handlers/Scrubber.py", line 115, in safe_strftime
>     return time.strftime(fmt, floatsecs)
> OverflowError: long int too large to convert to int

Looks like we need this patch:

Index: Scrubber.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/Scrubber.py,v
retrieving revision 2.27
diff -u -r2.27 Scrubber.py
--- Scrubber.py 28 Aug 2005 05:31:27 -0000      2.27
+++ Scrubber.py 7 Sep 2005 23:40:33 -0000
@@ -113,7 +113,7 @@
 def safe_strftime(fmt, floatsecs):
     try:
         return time.strftime(fmt, floatsecs)
-    except (TypeError, ValueError):
+    except (TypeError, ValueError, OverflowError):
         return None


---------------------------------------------------------


-- 
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/




More information about the Mailman-Users mailing list