mirror of https://github.com/Mikaela/Limnoria.git
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()
|
thread.start()
|
||||||
debug.printf('Spawned new thread: %s' % thread)
|
debug.printf('Spawned new thread: %s' % thread)
|
||||||
else:
|
else:
|
||||||
try:
|
# Exceptions aren't caught here because IrcObjectProxy.finalEval
|
||||||
f(irc, msg, args)
|
# catches them and does The Right Thing.
|
||||||
except Exception, e:
|
f(irc, msg, args)
|
||||||
debug.recoverableException()
|
|
||||||
irc.error(msg, debug.exnToString(e))
|
|
||||||
|
|
||||||
_r = re.compile(r'^(\S+)')
|
_r = re.compile(r'^(\S+)')
|
||||||
def doPrivmsg(self, irc, msg):
|
def doPrivmsg(self, irc, msg):
|
||||||
|
|
Loading…
Reference in New Issue