From 0a13904a1314d8237a772be99aced8c78e568c1d Mon Sep 17 00:00:00 2001 From: Brett Phipps Date: Mon, 24 Nov 2003 20:35:26 +0000 Subject: [PATCH] Added an additional check to weather. Fixed getting a single argument that coudl not be found properly. --- plugins/Http.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/Http.py b/plugins/Http.py index b73d72c61..8a488ad48 100644 --- a/plugins/Http.py +++ b/plugins/Http.py @@ -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)