mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user