jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/807110 )
Change subject: [IMPR] Add an empty id to wikibase simulate response. ......................................................................
[IMPR] Add an empty id to wikibase simulate response.
This is necessary to solve a KeyError within WikibaseEntity.editEntity() when simulating this method.
Change-Id: I737d9e0c3bca1f427af7141b1251ec60872ef42e --- M pywikibot/data/api/_requests.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/data/api/_requests.py b/pywikibot/data/api/_requests.py index 9f779ef..cebd99d 100644 --- a/pywikibot/data/api/_requests.py +++ b/pywikibot/data/api/_requests.py @@ -532,7 +532,7 @@ action: {'result': 'Success', 'nochange': ''},
# wikibase results - 'entity': {'lastrevid': -1}, + 'entity': {'lastrevid': -1, 'id': '-1'}, 'pageinfo': {'lastrevid': -1}, 'reference': {'hash': -1}, }
pywikibot-commits@lists.wikimedia.org