Bugs item #2062179, was opened at 2008-08-20 13:35 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2062179...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: category Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: stanlekub (stanlekub) Assigned to: Nobody/Anonymous (nobody) Summary: catlib.py should handle error pages returned by servers
Initial Comment: I think there should be a minimal check in catlib.py to be sure that the page the server returned is a valid mediawiki one and not a basic error page.
In the current behaviour (r5811 for me) it silently passes through as if the given category was empty (obviously finding no valid wikilinks).
Maybe just searching for something like the "pt-logout" id in the text just before all the regex stuff could do the trick ?
Don't no if it's better to go into a retrying loop or raise an exception, I let you do this in a consitent manner with other parts of the code... or maybe you'll just think it's a bad idea :)
And sorry for my english, it isn't as good as I wishes it to be. :( Hope you'll understand anyway.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2062179...
pywikipedia-l@lists.wikimedia.org