Added proper ArgumentError handling for threaded callbacks.

This commit is contained in:
Jeremy Fincher 2003-04-14 05:51:41 +00:00
parent aa4778254e
commit 2148a6e704

View File

@ -314,6 +314,8 @@ class CommandThread(threading.Thread):
elapsed = time.time() - start elapsed = time.time() - start
debug.msg('%s took %s seconds.' % \ debug.msg('%s took %s seconds.' % \
(self.commandName, elapsed), 'verbose') (self.commandName, elapsed), 'verbose')
except ArgumentError:
self.reply(self.msg, command.__doc__.splitlines()[0])
except Error, e: except Error, e:
self.irc.reply(self.msg, debug.exnToString(e)) self.irc.reply(self.msg, debug.exnToString(e))
except Exception, e: except Exception, e: