[Teammetrics-discuss] NNTP error

Andreas Tille andreas at an3as.eu
Fri Oct 28 09:32:17 UTC 2011


On Wed, Oct 26, 2011 at 01:20:37PM +0530, Sukhbir Singh wrote:
> >    return time.asctime(asctime_updated.timetuple())
> > real    1888m48.654s
> > user    51m52.691s
> > sys     3m41.426s
> >
> > We obviosely need to catch a further exception.  See also the logfiles
> > at blends.d.n.
> 
> I thought I had handled these invalid dates in lines 126/127 but not
> looks like they were needed in the `timetuple()` also.
> 
> Fixed and pushed :)

And again:

$ time ./nntpstat.py
Traceback (most recent call last):
  File "./nntpstat.py", line 347, in <module>
    main()
  File "./nntpstat.py", line 331, in main
    body, first, last)
  File "./nntpstat.py", line 204, in nntp_to_mbox
    updated_date = asctime_update(d, m)
  File "./nntpstat.py", line 127, in asctime_update
    asctime = datetime.datetime(*parse_date[:7], tzinfo=None)
ValueError: year is out of range

real    631m33.064s
user    4m14.716s
sys     0m42.607s


Because I'll be (basically) offline until 2.11. it might make sense if
you test the nntpstat script yourself.

Kind regards

         Andreas.

-- 
http://fam-tille.de



More information about the Teammetrics-discuss mailing list