From e63d93d48f40a41a7d6bef1a45225ca1fd5e0a8d Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 26 Oct 2004 12:47:08 +0000 Subject: [PATCH] Let's not check explicitly for None, just to be safe. --- plugins/Weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Weather.py b/plugins/Weather.py index 9e7939437..efc6689cc 100644 --- a/plugins/Weather.py +++ b/plugins/Weather.py @@ -114,7 +114,7 @@ class Weather(callbacks.Privmsg): channel = msg.args[0] if not location: location = self.userValue('lastLocation', msg.prefix) - if location is None: + if not location: raise callbacks.ArgumentError self.setUserValue('lastLocation', msg.prefix, location, ignoreNoUser=True)