mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Stopped catching exceptions in the wrong place in callCommand.
This commit is contained in:
parent
806a45a936
commit
c31167ed3f
@ -346,11 +346,9 @@ class Privmsg(irclib.IrcCallback):
|
||||
thread.start()
|
||||
debug.printf('Spawned new thread: %s' % thread)
|
||||
else:
|
||||
try:
|
||||
f(irc, msg, args)
|
||||
except Exception, e:
|
||||
debug.recoverableException()
|
||||
irc.error(msg, debug.exnToString(e))
|
||||
# Exceptions aren't caught here because IrcObjectProxy.finalEval
|
||||
# catches them and does The Right Thing.
|
||||
f(irc, msg, args)
|
||||
|
||||
_r = re.compile(r'^(\S+)')
|
||||
def doPrivmsg(self, irc, msg):
|
||||
|
Loading…
Reference in New Issue
Block a user