[Mailman-Users] Tracebacks with 2.1.5 since upgrading to Python 2.4

Tokio Kikuchi tkikuchi at is.kochi-u.ac.jp
Sat Dec 4 03:41:40 CET 2004


Bryan Fullerton wrote:

> Howdy,
> 
> I'm running Mailman 2.1.5 and upgraded to Python 2.4 yesterday. Since
> then I've gotten 9 tracebacks in the error log as below, with ~130
> bounces processed during that time. I've never seen this error before
> with Mailman that I can remember.
> 
(snip)

> Dec 03 07:48:21 2004 qrunner(47971):   File
> "/home/mailman-2.1/Mailman/Bouncer.py", line 131, in registerBounce
> Dec 03 07:48:21 2004 qrunner(47971):      time.strftime('%d-%b-%Y',
> day + (0,)*6))
> Dec 03 07:48:21 2004 qrunner(47971): ValueError :  day of year out of range 
> 
> Do I need to do something with Mailman after updating to Python 2.4,
> or is this a bug?

time.strftime('%d-%b-%Y', day + (0,)*6)) should be something like: 
time.strftime('%d-%b-%Y', day + (0,0,0,0,1,0))

Looks like we should care 2.4 compatibilty first before jumping in it.

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




More information about the Mailman-Users mailing list