mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Let's not check explicitly for None, just to be safe.
This commit is contained in:
parent
cbd5abbab7
commit
e63d93d48f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user