From 33fc4ffbf7b6ef76180495cfdeb7a114e2f6cb42 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 28 Apr 2019 14:12:35 +0100 Subject: [PATCH] Actually provide user nickname in !weather error message --- modules/weather.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/weather.py b/modules/weather.py index 4c217944..3701d7dc 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -23,7 +23,8 @@ 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") + raise utils.EventError("%s doesn't have a location set", + target_user.nickname) else: location = self._user_location(event["user"]) if location == None: