aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-18 16:53:57 +0100
committerGravatar jesopo2019-06-18 16:53:57 +0100
commit00d7da9967a97bc8a4ff958851fb9051b15fdc9e (patch)
tree3f0445d907b9a81cf05f876bafb9aff9326aead4 /modules
parentRemove debug prints (diff)
signature
`location_name` will not be defined when querying a location instead of a user
Diffstat (limited to 'modules')
-rw-r--r--modules/weather.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/weather.py b/modules/weather.py
index 263bc07d..2b45a98d 100644
--- a/modules/weather.py
+++ b/modules/weather.py
@@ -40,6 +40,7 @@ class Module(ModuleManager.BaseModule):
args = {"units": "metric", "APPID": api_key}
+ location_name = None
if location:
lat, lon, location_name = location
args["lat"] = lat