mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
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:
parent
2db0cd197c
commit
26bb2335f3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user