Fix error handling again

This commit is contained in:
Nexus 2023-02-23 16:12:07 +00:00
parent 54d42c2185
commit cd6c789541
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -51,7 +51,7 @@ class Bot(commands.Bot):
async def on_error(self, event: str, *args, **kwargs): async def on_error(self, event: str, *args, **kwargs):
e_type, e, tb = sys.exc_info() 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 return
await super().on_error(event, *args, **kwargs) await super().on_error(event, *args, **kwargs)