Page MenuHomePhabricator

KeyError in site.py in token function when token type is "move"
Closed, DeclinedPublic

Description

Author: pyfisch

Description:
Terminal output

There is only an "edittoken" and no "movetoken" in the item dict:

{u'lastrevid': 503550838, u'pageid': 17875787, u'title': u'Category talk:Contents', u'starttimestamp': u'2013-12-28T10:25:42Z', u'counter': u'', u'length': 1820, u'contentmodel': u'wikitext', u'pagelanguage': u'en', u'touched': u'2013-08-05T20:18:23Z', u'ns': 15}

A complete log is in the attachment.


Version: core-(2.0)
Severity: normal

Attached:

Details

Reference
bz59013

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:30 AM
bzimport set Reference to bz59013.
bzimport added a subscriber: Unknown Object (????).

This is strange. I can move my page by bot normally. Are you still facing this problem?

pyfisch wrote:

Yes, I am still facing this problem, but only in simulation mode and on en:Category:Contents if moving en:Category:Contents to a different target before. I am using the most current version from git.

python category.py move -simulate -lang:en -v
Works for me in Core on wikipedia on Category:Contents

It looks like this code has changed, as it now throws an exception.

$ python pwb.py category.py move -simulate -lang:en -v -from:Category:Contents -to:Category:ContentsX
....
SIMULATION: move action blocked.
Site("en", "wikipedia").login(False) called when a previous login was in progress.
Error saving page [[Category:ContentsX]] (Page [[en:Category:ContentsX]] doesn't exist.)
...backtrace...
PageNotSaved: [[Category:ContentsX]]: Page [[en:Category:ContentsX]] doesn't exist.

Please re-open if the problem still exists with the current code.