jenkins-bot has submitted this change and it was merged.

Change subject: Fix coordinates bug
......................................................................


Fix coordinates bug

Change-Id: Iaa38d76ada7732f071936b2e3ec3a7e730fcd56f
---
M pywikibot/data/api.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index 45c5d04..264dc13 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -1006,7 +1006,7 @@
             coord = pywikibot.Coordinate(lat=co['lat'],
                                          lon=co['lon'],
                                          typ=co.get('type', ''),
-                                         name=co['name'],
+                                         name=co.get('name', ''),
                                          dim=int(co['dim']),
                                          globe=co['globe'],  # See 
[[gerrit:67886]]
                                          )

-- 
To view, visit https://gerrit.wikimedia.org/r/116281
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iaa38d76ada7732f071936b2e3ec3a7e730fcd56f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Multichill <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to