mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +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):
|
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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue