From 2148a6e704d7222618205724e41d8a095dbcc2de Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 14 Apr 2003 05:51:41 +0000 Subject: [PATCH] Added proper ArgumentError handling for threaded callbacks. --- src/callbacks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/callbacks.py b/src/callbacks.py index d24bd5a08..be863ae56 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -314,6 +314,8 @@ class CommandThread(threading.Thread): elapsed = time.time() - start debug.msg('%s took %s seconds.' % \ (self.commandName, elapsed), 'verbose') + except ArgumentError: + self.reply(self.msg, command.__doc__.splitlines()[0]) except Error, e: self.irc.reply(self.msg, debug.exnToString(e)) except Exception, e: