mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-30 14:49:28 +01:00
ServiceBot: display the NotAuthorizedError argument raw
This commit is contained in:
parent
b4b772354c
commit
06cbbbb019
2
utils.py
2
utils.py
@ -267,7 +267,7 @@ class ServiceBot():
|
||||
try:
|
||||
func(irc, source, cmd_args)
|
||||
except NotAuthorizedError as e:
|
||||
self.reply(irc, 'Error: Not authorized. %s' % e)
|
||||
self.reply(irc, 'Error: %s' % e)
|
||||
except Exception as e:
|
||||
log.exception('Unhandled exception caught in command %r', cmd)
|
||||
self.reply(irc, 'Uncaught exception in command %r: %s: %s' % (cmd, type(e).__name__, str(e)))
|
||||
|
Loading…
Reference in New Issue
Block a user