Need to make sure s is declared

This commit is contained in:
James Vega 2004-11-02 05:41:42 +00:00
parent 716aefbb8d
commit 553f31c425

View File

@ -132,6 +132,7 @@ class Geekquote(callbacks.PrivmsgCommandAndRegexp):
except webutils.WebError, e: except webutils.WebError, e:
self.log.info('%s server returned the error: %s' % \ self.log.info('%s server returned the error: %s' % \
(site, webutils.strError(e))) (site, webutils.strError(e)))
s = None
for item in self._gkREDict[site].finditer(html): for item in self._gkREDict[site].finditer(html):
s = item.groupdict()['text'] s = item.groupdict()['text']
s = self._joiner.join(s.splitlines()) s = self._joiner.join(s.splitlines())