mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Added an additional check to weather. Fixed getting a single
argument that coudl not be found properly.
This commit is contained in:
parent
f53c92cce9
commit
0a13904a13
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user