mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
Added proper ArgumentError handling for threaded callbacks.
This commit is contained in:
parent
aa4778254e
commit
2148a6e704
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user