Page MenuHomePhabricator

api Fails for some Blockentry methods
Closed, ResolvedPublic

Description

KeyError: u"Log entry (block) has no 'block' key"

Seems 'block' has been changed to 'params', maybe since mw 1.19 but I am not sure

Event Timeline

Xqt raised the priority of this task from to High.
Xqt updated the task description. (Show Details)
Xqt added a project: Pywikibot.
Xqt subscribed.
Restricted Application added subscribers: Aklapper, Unknown Object (MLST). · View Herald TranscriptMay 18 2015, 11:51 AM

some other points:

  • when duration is 'infinite' (sic!) then params has no 'expiry' Parameter
  • flags must not have been splittet. It is a list now and may be assigned by:
self._flags = self._getBlockDetails()['flags']
Xqt set Security to None.

Change 211802 had a related patch set uploaded (by Xqt):
[FIX] Re-enable BlockEnty methods

https://gerrit.wikimedia.org/r/211802

Change 211802 merged by jenkins-bot:
[FIX] Re-enable BlockEntry and MoveEntry methods

https://gerrit.wikimedia.org/r/211802