Merge "Handle exception for unprivileged commands"
This commit is contained in:
commit
387e31a16c
|
@ -386,11 +386,15 @@ class BaseStatusBot(SSL, irc.bot.SingleServerIRCBot):
|
|||
nick = e.source.split('!')[0]
|
||||
msg = e.arguments[0]
|
||||
# Unprivileged commands
|
||||
if msg.startswith('#success'):
|
||||
self.handle_success_command(e.target, nick, msg)
|
||||
return
|
||||
if msg.startswith('#thanks'):
|
||||
self.handle_thanks_command(e.target, nick, msg)
|
||||
try:
|
||||
if msg.startswith('#success'):
|
||||
self.handle_success_command(e.target, nick, msg)
|
||||
return
|
||||
if msg.startswith('#thanks'):
|
||||
self.handle_thanks_command(e.target, nick, msg)
|
||||
return
|
||||
except Exception:
|
||||
self.log.exception("Exception handling command %s" % msg)
|
||||
return
|
||||
# Privileged commands
|
||||
if not msg.startswith('#status'):
|
||||
|
|
Loading…
Reference in New Issue