jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Icf544e86d6765bdbe91b27e14e6b7948034e8b4f
Gerrit-Change-Number: 462293
Gerrit-PatchSet: 1
Gerrit-Owner: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)