A user without a country can now have '<country>None</country>'
This commit is contained in:
parent
b3a4ac5388
commit
4aefda5d39
1 changed files with 1 additions and 1 deletions
|
@ -2300,7 +2300,7 @@ class User(_BaseObject, _Chartable):
|
||||||
|
|
||||||
country = _extract(doc, "country")
|
country = _extract(doc, "country")
|
||||||
|
|
||||||
if country is None:
|
if country is None or country == "None":
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
return Country(country, self.network)
|
return Country(country, self.network)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue