From 00d7da9967a97bc8a4ff958851fb9051b15fdc9e Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 18 Jun 2019 16:53:57 +0100 Subject: [PATCH] `location_name` will not be defined when querying a location instead of a user --- modules/weather.py | 1 + 1 file changed, 1 insertion(+) 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