Catch UserNotFoundException in var e

This commit is contained in:
jesopo 2019-05-08 07:36:17 +01:00
parent 920c1d2cd8
commit cb25f70418

View file

@ -38,7 +38,7 @@ class Module(ModuleManager.BaseModule):
try:
self._kick(event["server"], channel, target, reason)
except UserNotFoundException:
except UserNotFoundException as e:
event["stderr"].write(str(e))
@utils.hook("received.command.kick", private_only=True, min_args=2)