[Teammetrics-discuss] Error in liststat.py
Andreas Tille
andreas at an3as.eu
Mon Aug 8 10:51:13 UTC 2011
On Mon, Aug 08, 2011 at 02:25:03PM +0530, Sukhbir Singh wrote:
> >> TypeError: 'NoneType' object is unsubscriptable
> > BTW, restarting did not helped: liststat.log ends the same way as
> > liststat.log.0.
>
> This is for messages which have no time zone specified, I didn't see it coming!
You can not see all things coming. :-)
I think it is better now - but not done yet:
$ ./nntpstat.py
Traceback (most recent call last):
File "./nntpstat.py", line 310, in <module>
main()
File "./nntpstat.py", line 291, in main
body, first, last)
File "./nntpstat.py", line 168, in nntp_to_mbox
updated_date = asctime_update(d, m)
File "./nntpstat.py", line 122, in asctime_update
asctime = datetime.datetime(*parse_date[:7], tzinfo=None)
TypeError: 'NoneType' object is unsubscriptable
Logfile says:
...
2011-08-08 10:47:16,181 INFO: Fetched 2616 message bodies
2011-08-08 10:47:16,209 ERROR: Invalid timezone for Message-ID: <E17cLoW-0005Tt-00 at grunt4.ihug.co.nz>
2011-08-08 10:47:16,209 INFO: Setting timezone to UTC
> Handled, fixed and pushed. Please try again because we can't foretell
> all such errors and testing is the only way :)
Sure.
Kind regards
Andreas.
--
http://fam-tille.de
More information about the Teammetrics-discuss
mailing list