From 4aefda5d39596d86e535ecc3bf82d02bfebe28ea Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 27 May 2018 19:28:59 +0300 Subject: [PATCH] A user without a country can now have 'None' --- pylast/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index 1d0c6d9..896f440 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -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)