jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/428048 )
Change subject: [bugfix] Fix KeyError in api.update_page for coordinates ......................................................................
[bugfix] Fix KeyError in api.update_page for coordinates
Bug: T189398 Change-Id: I650d1cbb5e01ad2db5afa220a576c394d6dd5aa9 --- M pywikibot/data/api.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py index 1fed1f9..8a64bcc 100644 --- a/pywikibot/data/api.py +++ b/pywikibot/data/api.py @@ -3264,7 +3264,7 @@ lon=co['lon'], typ=co.get('type', ''), name=co.get('name', ''), - dim=int(co['dim']), + dim=int(co.get('dim', 0)) or None, globe=co['globe'], # See [[gerrit:67886]] ) coords.append(coord)
pywikibot-commits@lists.wikimedia.org