From b362e7d760c6f1954d1859b3c546184720967f1e Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 17 Sep 2019 15:06:13 +0100 Subject: if a word is known as a nickname but the user has no location, treat as location --- modules/weather.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/weather.py b/modules/weather.py index 2b2d67ac..df246690 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -32,8 +32,7 @@ class Module(ModuleManager.BaseModule): target_user = event["server"].get_user(event["args_split"][0]) location = self._user_location(target_user) if location == None: - raise utils.EventError("%s doesn't have a location set" - % target_user.nickname) + location = event["args_split"][0] else: nickname = target_user.nickname else: -- cgit v1.3.1-10-gc9f91