mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +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):
|
def __call__(self, irc, msg):
|
||||||
commandName = 'do' + msg.command.capitalize()
|
commandName = 'do' + msg.command.capitalize()
|
||||||
if hasattr(self, commandName):
|
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):
|
def reset(self):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user