Page MenuHomePhabricator

Site.addClaim() does not work with -simulate flag
Closed, DuplicatePublic

Description

def _simulate(self, action) in api.py returns

{action: {'result': 'Success', 'nochange': ''}}

def addClaim() in site.py expects a data dict for:

claim.snak = data['claim']['id']

and throws KeyError

Event Timeline

Mpaa raised the priority of this task from to Needs Triage.
Mpaa updated the task description. (Show Details)
Mpaa subscribed.

This task wasn't tagged with a project. Which project is it about? pywikipediabot or something?

Restricted Application added a subscriber: Unknown Object (MLST). · View Herald TranscriptApr 7 2015, 9:06 PM

In general it is True for all requests that edit WD.