mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 10:03:40 +01:00
Fix error handling again
This commit is contained in:
parent
54d42c2185
commit
cd6c789541
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue