jenkins-bot merged this change.
Avoid crash in Coordinate initializer
When site is None, it falls back to the default. But this is reflected
in the instance variable, not this one.
Change-Id: Icf544e86d6765bdbe91b27e14e6b7948034e8b4f
---
M pywikibot/__init__.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index c9230c0..bd0a366 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -306,7 +306,7 @@
if globe:
globe = globe.lower()
elif not globe_item:
- globe = site.default_globe()
+ globe = self.site.default_globe()
self.globe = globe
@property
To view, visit change 462293. To unsubscribe, or for help writing mail filters, visit settings.