A user without a country can now have '<country>None</country>'

This commit is contained in:
Hugo 2018-05-27 19:28:59 +03:00
parent b3a4ac5388
commit 4aefda5d39

View file

@ -2300,7 +2300,7 @@ class User(_BaseObject, _Chartable):
country = _extract(doc, "country")
if country is None:
if country is None or country == "None":
return None
else:
return Country(country, self.network)