mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Added a bit better diagnostic to IrcCallback.__call__ except clause.
This commit is contained in:
parent
d11d24c420
commit
8dc457961a
@ -59,6 +59,7 @@ class IrcCommandDispatcher(object):
|
||||
def dispatchCommand(self, command):
|
||||
return getattr(self, 'do' + command.capitalize(), None)
|
||||
|
||||
|
||||
class IrcCallback(IrcCommandDispatcher):
|
||||
"""Base class for standard callbacks.
|
||||
|
||||
@ -81,10 +82,10 @@ class IrcCallback(IrcCommandDispatcher):
|
||||
if method is not None:
|
||||
try:
|
||||
method(irc, msg)
|
||||
except Exception:
|
||||
except Exception, e:
|
||||
debug.recoverableException()
|
||||
s = 'Exception raised by %s.%s' % \
|
||||
(self.__class__.__name__, method.im_func.func_name)
|
||||
s = 'Exception (%s) raised by %s.%s' % \
|
||||
(e, self.__class__.__name__, method.im_func.func_name)
|
||||
debug.msg(s)
|
||||
|
||||
def reset(self):
|
||||
|
Loading…
Reference in New Issue
Block a user