A user without a country can now have '<country>None</country>'
This commit is contained in:
parent
b3a4ac5388
commit
4aefda5d39
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue