3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-02-02 23:54:08 +01:00

Irc: fix NameError caused by 0c7faed

This commit is contained in:
James Lu 2016-05-14 12:19:38 -07:00
parent aa05dcd112
commit 9236f7e095

View File

@ -470,7 +470,7 @@ class Irc():
for func in world.commands[cmd]: for func in world.commands[cmd]:
try: try:
func(self, source, cmd_args) func(self, source, cmd_args)
except NotAuthenticatedError: except utils.NotAuthenticatedError:
self.msg(self.called_by or source, 'Error: You are not authorized to perform this operation.') self.msg(self.called_by or source, 'Error: You are not authorized to perform this operation.')
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)