Bugs item #1983819, was opened at 2008-06-03 20:38 Message generated for change (Comment added) made by nicdumz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1983819...
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: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Mikko Silvonen (silvonen)
Assigned to: NicDumZ — Nicolas Dumazet (nicdumz)
Summary: category.py move crashes when a talk page exists
Initial Comment: When I tried to move the Finnish category "Luokka:Wolfin palkinnon saaneet" to "Luokka:Wolfin matematiikan palkinnon saajat" with SilvonenBot, category.py crashed after creating the new category and moving its talk page, but before moving any articles to the new category. Did the script try to move the talk page twice, or what is happening here? No time to debug this myself today...
I was using r5503 (+ my patch in bug 1983740).
category.py move
Checked for running processes. 3 processes currently running, including the current process. Reading dump from category.dump.bz2 Please enter the old name of the category: Wolfin palkinnon saaneet Please enter the new name of the category: Wolfin matematiikan palkinnon saajat Moving text from Luokka:Wolfin palkinnon saaneet to Luokka:Wolfin matematiikan palkinnon saajat. Creating page [[fi:Luokka:Wolfin matematiikan palkinnon saajat]] Sleeping for 9.9 seconds, 2008-06-03 20:25:42 Dumping to category.dump.bz2, please wait... Traceback (most recent call last): File "C:\svn\pywikipedia\category.py", line 952, in <module> bot.run() File "C:\svn\pywikipedia\category.py", line 425, in run if oldTalk.move(newTalkTitle, reason): File "c:\svn\pywikipedia\wikipedia.py", line 2095, in move raise PageNotSaved(u'Page move failed: Target page [[%s]] already exists.' % newtitle) wikipedia.PageNotSaved: Page move failed: Target page [[Keskustelu luokasta:Wolfin matematiikan palkinnon saajat]] already exists.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-06-03 22:59
Message: Logged In: YES user_id=1963242 Originator: NO
Yep, wikipedia::move can raise errors since r5271, and its calls had not been sanitized at that time.
Fixing this in r5509. Thanks for the report :)
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1983819...