From cb25f70418a41b12e227eca709635b55a03019e8 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 8 May 2019 07:36:17 +0100 Subject: [PATCH] Catch UserNotFoundException in var `e` --- modules/channel_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/channel_op.py b/modules/channel_op.py index 513040fa..9f9fab90 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -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)