[Pywikipedia-l] [ pywikipediabot-Bugs-1855044 ] redirect.py crashes when finding a bad page

SourceForge.net noreply at sourceforge.net
Thu Dec 20 17:20:31 UTC 2007


Bugs item #1855044, was opened at 2007-12-20 18:20
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=1855044&group_id=93107

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: Open
Resolution: None
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1855044&group_id=93107



More information about the Pywikipedia-l mailing list