[Pywikipedia-l] [Pywikipedia-svn] SVN: [6685] branches/rewrite/pywikibot
Merlijn van Deen
valhallasw at arctus.nl
Sat Apr 25 23:09:01 UTC 2009
On Sat, April 25, 2009 6:07 pm, Nicolas Dumazet wrote:
> ERROR: Traceback (most recent call last):
> File "/home/nicdumz/pywikipedia/pywikibot/data/api.py", line 189, in
> submit
> body=params)
> File "/home/nicdumz/pywikipedia/pywikibot/comms/http.py", line 102, in
> request
> if request.data[0].status == 504:
> AttributeError: 'int' object has no attribute 'status'
>
> WARNING: Waiting 5 seconds before retrying.
>
> But it's nothing critical, because the error is caught, and the query
> is sent again.
Actually, it is, but not because of the exception ;) That AttributeError
is a programming error, and if it is being caught, that means there is
some try-except-block catching exceptions it shouldn't be catching...
Although I have to agree this is less annoying than the bot crashing.
--valhallasw
More information about the Pywikipedia-l
mailing list