From 94a7a963a76713de2d37f0a3a29f955c2cced18d Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 14 Feb 2020 22:01:16 +0000 Subject: [PATCH] Always throw `CooldownError` even when cooldown has a callback --- houdini/converters.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/houdini/converters.py b/houdini/converters.py index 68536c7..7199c23 100644 --- a/houdini/converters.py +++ b/houdini/converters.py @@ -58,8 +58,7 @@ class _ArgumentDeserializer: await self.cooldown.callback(self.instance, p) else: await self.cooldown.callback(p) - else: - raise CooldownError(f'{p} invoked listener during cooldown') + raise CooldownError(f'{p} invoked listener during cooldown') def _check_list(self, p): if not self._can_run(p):