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).

This commit is contained in:
Jeremy Fincher 2004-09-06 08:44:45 +00:00
parent 2db0cd197c
commit 26bb2335f3

View File

@ -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