Added an additional check to weather. Fixed getting a single

argument that coudl not be found properly.
This commit is contained in:
Brett Phipps 2003-11-24 20:35:26 +00:00
parent f53c92cce9
commit 0a13904a13

View File

@ -226,7 +226,11 @@ class Http(callbacks.Privmsg):
(city, state, country) = headData.groups()
else:
headData = self._interregex.search(html)
(city, state) = headData.groups()
if headData:
(city, state) = headData.groups()
else:
irc.error(msg, 'No such location could be found.')
return
temp = self._tempregex.search(html).group(1)
conds = self._condregex.search(html).group(1)