nicdumz@svn.wikimedia.org ha scritto:
Revision: 6767 Author: nicdumz Date: 2009-04-30 09:00:50 +0000 (Thu, 30 Apr 2009)
Log Message:
[ 2771272 ] 44 Error Dump Files : print a message on site error, sleep and retry.
Modified Paths:
trunk/pywikipedia/wikipedia.py
[...]
output(u'Remote site has a problem, it probably ' \
'exited our query with an internal Error. ' \
'Sleeping for %d seconds...' % self.sleeptime)
"error". I think it would be preferable to print a more generic message about an invalid/unexpected data received from server.
2009/5/1 Francesco Cosoleto cosoleto@gmail.com:
- output(u'Remote site has a problem, it probably ' \
- 'exited our query with an internal Error. ' \
- 'Sleeping for %d seconds...' % self.sleeptime)
"error". I think it would be preferable to print a more generic message about an invalid/unexpected data received from server.
I wish there was a way to extract the error that the server returned :/ "Invalid data received from server" then ? What about the next line "Got incorrect export page. " ? It's no so meaningful, and the two messages could probably be merged together.
Nicolas Dumazet ha scritto:
output(u'Remote site has a problem, it probably ' \
'exited our query with an internal Error. ' \
'Sleeping for %d seconds...' % self.sleeptime)
"error". I think it would be preferable to print a more generic message about an invalid/unexpected data received from server.
I wish there was a way to extract the error that the server returned :/ "Invalid data received from server" then ? What about the next line "Got incorrect export page. " ? It's no so meaningful, and the two messages could probably be merged together.
"Received incomplete XML data"? Looks better of repeating the same error message printed when '<siteinfo>' isn't found.
Francesco Cosoleto ha scritto:
I wish there was a way to extract the error that the server returned :/ "Invalid data received from server" then ? What about the next line "Got incorrect export page. " ? It's no so meaningful, and the two messages could probably be merged together.
"Received incomplete XML data"? Looks better of repeating the same error message printed when '<siteinfo>' isn't found.
Don't you have intention to change this?
I need some time to write something that somebody can call "English" and then get ignored it's not the best. This may looks as touchy, but it isn't. Just a question.
2009/5/5 Francesco Cosoleto cosoleto@gmail.com:
Francesco Cosoleto ha scritto: Don't you have intention to change this?
I was secretly hoping that you would commit it for me ;) Done, r6820
pywikipedia-l@lists.wikimedia.org