jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/462293 )
Change subject: Avoid crash in Coordinate initializer ......................................................................
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(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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
pywikibot-commits@lists.wikimedia.org