mirror of
https://github.com/jlu5/PyLink.git
synced 2025-10-15 07:57:21 +02: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:
|
try:
|
||||||
func(irc, source, cmd_args)
|
func(irc, source, cmd_args)
|
||||||
except NotAuthorizedError as e:
|
except NotAuthorizedError as e:
|
||||||
self.reply(irc, 'Error: Not authorized. %s' % e)
|
self.reply(irc, 'Error: %s' % e)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.exception('Unhandled exception caught in command %r', cmd)
|
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)))
|
self.reply(irc, 'Uncaught exception in command %r: %s: %s' % (cmd, type(e).__name__, str(e)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user