Bugs item #1855044, was opened at 2007-12-20 14:20 Message generated for change (Settings changed) made by leogregianin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1855044...
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: None Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Nicolas Dumazet (nicdumz) Assigned to: Nobody/Anonymous (nobody) Summary: redirect.py crashes when finding a bad page
Initial Comment: When doing a simple "redirect.py double -xml:xx.xml", I got :
Traceback (most recent call last): File "redirect.py", line 377, in <module> main() File "redirect.py", line 373, in main bot.run() File "redirect.py", line 328, in run self.fix_double_redirects() File "redirect.py", line 273, in fix_double_redirects secondTargetPage = secondRedir.getRedirectTarget() File "/home/nico/projets/pywikipedia/wikipedia.py", line 1576, in getRedirectTarget self.get() File "/home/nico/projets/pywikipedia/wikipedia.py", line 595, in get self._contents, self._isWatched, self.editRestriction = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop, nofollow_redirects=nofollow_redirects) File "/home/nico/projets/pywikipedia/wikipedia.py", line 679, in _getEditPage raise BadTitle('BadTitle: %s' % self) wikipedia.BadTitle: BadTitle: [[../Projet/Sciences/Champs magnétiques B et H]]
Now, the redirect page was : #REDIRECT [[../Projet/Sciences/Champs magnétiques B et H]], which is not correct.
But I think that redirect.py is supposed to ask the user if not skipping it, instead of crashing ;)
Thanks, Nicolas Dumazet.
----------------------------------------------------------------------
Comment By: Russell Blau (russblau) Date: 2007-12-20 15:39
Message: Logged In: YES user_id=855050 Originator: NO
fixed in r4741
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1855044...