Let's not check explicitly for None, just to be safe.

This commit is contained in:
James Vega 2004-10-26 12:47:08 +00:00
parent cbd5abbab7
commit e63d93d48f

View File

@ -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)