From cd6c7895411f88803d4b60e8000c78eb95070ffd Mon Sep 17 00:00:00 2001 From: nex Date: Thu, 23 Feb 2023 16:12:07 +0000 Subject: [PATCH] Fix error handling again --- utils/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/client.py b/utils/client.py index 4640339..076acd5 100644 --- a/utils/client.py +++ b/utils/client.py @@ -51,7 +51,7 @@ class Bot(commands.Bot): async def on_error(self, event: str, *args, **kwargs): e_type, e, tb = sys.exc_info() - if isinstance(e, discord.CheckFailure) and str(e) == 'The global check once functions failed.': + if isinstance(e, discord.CheckFailure) and 'The global check once functions failed.' in str(e): return await super().on_error(event, *args, **kwargs)