3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 13:09:23 +01:00

ServiceBot: display the NotAuthorizedError argument raw

This commit is contained in:
James Lu 2016-08-25 00:57:21 -07:00
parent b4b772354c
commit 06cbbbb019

View File

@ -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)))