Fixed an UnboundLocalError caused by forgetting to assign a default None value

to some vars.
This commit is contained in:
Daniel DiPaolo 2003-11-24 06:12:09 +00:00
parent dc2c9c55fe
commit 2cdd2392ff

View File

@ -307,6 +307,8 @@ class Google(callbacks.PrivmsgCommandAndRegexp, plugins.Configurable):
fd = urllib2.urlopen(request)
text = fd.read()
fd.close()
mThread = None
mGroup = None
if '&prev=/' in match.group(0):
path = re.search('view the <a href=([^>]+)>no',text)
if path is None: