mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
A little better error reporting
This commit is contained in:
parent
fb150d0e5b
commit
30591187ad
@ -70,7 +70,14 @@ class IrcCallback(object):
|
||||
def __call__(self, irc, msg):
|
||||
commandName = 'do' + msg.command.capitalize()
|
||||
if hasattr(self, commandName):
|
||||
getattr(self, commandName)(irc, msg)
|
||||
method = getattr(self, commandName)
|
||||
try:
|
||||
method(irc, msg)
|
||||
except Exception, e:
|
||||
debug.recoverableException()
|
||||
s = 'Exception raised by %s.%s' % \
|
||||
(self.__class__.__name__, method.im_func.func_name)
|
||||
debug.debugMsg(s)
|
||||
|
||||
def reset(self):
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user