Last modified: 2014-10-30 02:52:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57255, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55255 - delete.py --undelete unhandled exception when page exists
delete.py --undelete unhandled exception when page exists
Status: NEW
Product: Pywikibot
Classification: Unclassified
Other scripts (Other open bugs)
compat-(1.0)
All All
: Normal normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:52 UTC by Kunal Mehta (Legoktm)
Modified: 2014-10-30 02:52 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:52:18 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1260/
Reported by: tgr_
Created on: 2010-11-21 15:52:40
Subject: delete.py --undelete unhandled exception when page exists
Original description:
Trying to undelete an existing page gives the following error:

Processing page XXX
Note: Your sysop account on wikipedia:hu does not have a bot flag. Its edits wil
l be visible in the recent changes.
Sleeping for 6.3 seconds, 2010-11-21 16:34:14
Traceback \(most recent call last\):
File "C:\home\wikipedia\pywikipediabot\delete.py", line 242, in <module>
main\(\)
File "C:\home\wikipedia\pywikipediabot\delete.py", line 236, in main
bot.run\(\)
File "C:\home\wikipedia\pywikipediabot\delete.py", line 125, in run
page.undelete\(self.summary, throttle = True\)
File "C:\home\wikipedia\pywikipediabot\wikipedia.py", line 3306, in undelete
raise RuntimeError\("%s" % result\['error'\]\)
RuntimeError: \{u'info': u"Couldn't undelete: the requested revisions may not exi
st, or may have been undeleted already", u'code': u'cantundelete'\}

version.py:
Pywikipedia \[http\] trunk/pywikipedia \(r8736, 2010/11/20, 10:28:21\)
Python 2.6.5 \(r265:79096, Mar 19 2010, 21:48:26\) \[MSC v.1500 32 bit \(Intel\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
Comment 1 Amir Ladsgroup 2013-10-25 13:04:47 UTC
Confirmed,

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links