Stopped catching exceptions in the wrong place in callCommand.

This commit is contained in:
Jeremy Fincher 2003-04-02 07:42:07 +00:00
parent 806a45a936
commit c31167ed3f
1 changed files with 3 additions and 5 deletions

View File

@ -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):