Legoktm has submitted this change and it was merged.
Change subject: AttributeError: 'NoneType' object has no attribute 'lower' ......................................................................
AttributeError: 'NoneType' object has no attribute 'lower'
Change-Id: Iff2e6137e7406388182b9deec7f6069a4b6fd452 --- M pywikibot/__init__.py 1 file changed, 3 insertions(+), 1 deletion(-)
Approvals: Legoktm: Verified; Looks good to me, approved
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py index 009af89..b3f5438 100644 --- a/pywikibot/__init__.py +++ b/pywikibot/__init__.py @@ -120,7 +120,9 @@ self.lon = lon self.alt = alt self._precision = precision - self.globe = globe.lower() + if globe: + globe = globe.lower() + self.globe = globe self._entity = entity self.type = typ self.name = name