mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +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()
|
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…
x
Reference in New Issue
Block a user