diff --git a/bin/polybar-weather b/bin/polybar-weather index 2f0932b..fd36777 100755 --- a/bin/polybar-weather +++ b/bin/polybar-weather @@ -29,7 +29,9 @@ def get_location(): ) return ( (data["location"]["latitude"], data["location"]["longitude"]), - data["city"]["names"]["en"], + data["city"]["names"]["en"] + if "city" in data + else data["country"]["names"]["en"], )