mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +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]
|
channel = msg.args[0]
|
||||||
if not location:
|
if not location:
|
||||||
location = self.userValue('lastLocation', msg.prefix)
|
location = self.userValue('lastLocation', msg.prefix)
|
||||||
if location is None:
|
if not location:
|
||||||
raise callbacks.ArgumentError
|
raise callbacks.ArgumentError
|
||||||
self.setUserValue('lastLocation', msg.prefix,
|
self.setUserValue('lastLocation', msg.prefix,
|
||||||
location, ignoreNoUser=True)
|
location, ignoreNoUser=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user