From 26bb2335f30277218b7e5cb445d0a6604a8e1adf Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 6 Sep 2004 08:44:45 +0000 Subject: [PATCH] Fix for attributeError I ran into, as well as a premature commit of a name change (but since it's just a name change, I'm fine with it). --- plugins/Infobot.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/Infobot.py b/plugins/Infobot.py index a8d7c45e5..43c42b6d2 100755 --- a/plugins/Infobot.py +++ b/plugins/Infobot.py @@ -457,7 +457,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp): elif self.db.hasAre(key): isAre = 'are' value = self.db.getAre(key) - except dbi.InvalidDBError: + except dbi.InvalidDBError, e: self._error('Unable to access db: %s' % e) return if isAre is None: @@ -559,11 +559,12 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp): self.badForce = False self.addressed = False - def callCommand(self, f, irc, msg, *L, **kwargs): + def callCommand(self, name, irc, msg, *L, **kwargs): + #print '***', name, utils.stackTrace() try: self.irc = irc self.msg = msg - super(Infobot, self).callCommand(f, irc, msg, *L, **kwargs) + super(Infobot, self).callCommand(name, irc, msg, *L, **kwargs) finally: self.irc = None self.msg = None