From 06cbbbb0193acf76687694c958fe5fce3445ac3c Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 25 Aug 2016 00:57:21 -0700 Subject: [PATCH] ServiceBot: display the NotAuthorizedError argument raw --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index a7e4476..4fa1b30 100644 --- a/utils.py +++ b/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)))