From a4545d45a7ed6c8bc967c848139127ca11dc2d6e Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 31 Dec 2004 04:18:02 +0000 Subject: [PATCH] Fix bug #1093594, UnboundLocalError --- plugins/Infobot.py | 11 +++++++++-- test/test_Infobot.py | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/plugins/Infobot.py b/plugins/Infobot.py index 333bf2669..dfe6f1dbc 100755 --- a/plugins/Infobot.py +++ b/plugins/Infobot.py @@ -553,6 +553,9 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp): isAre = None else: value = self.db.getAre(channel, key) + else: + self.log.debug('Returning early: Got a bad isAre value.') + return except dbi.InvalidDBError, e: self._error('Unable to access db: %s' % e) return @@ -730,6 +733,11 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp): r"^(.+?)\s+(?