Skip to content

Commit

Permalink
fix: Ignore CheckFailure error
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Jan 15, 2025
1 parent 9675589 commit 9362dd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hoyo_buddy/bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,9 @@ async def update_hsr_assets(self) -> None:
async def on_command_error(
self, context: commands.Context, exception: commands.CommandError
) -> None:
if isinstance(exception, commands.CommandNotFound | commands.TooManyArguments):
if isinstance(
exception, commands.CommandNotFound | commands.TooManyArguments | commands.CheckFailure
):
return None
return await super().on_command_error(context, exception)

Expand Down

0 comments on commit 9362dd9

Please sign in to comment.