From 9362dd9f037def4a7e0fcc9f5063604d34fe6a36 Mon Sep 17 00:00:00 2001 From: seria Date: Wed, 15 Jan 2025 21:46:08 +0900 Subject: [PATCH] fix: Ignore CheckFailure error --- hoyo_buddy/bot/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hoyo_buddy/bot/bot.py b/hoyo_buddy/bot/bot.py index 79ec4f5a..4dd52848 100644 --- a/hoyo_buddy/bot/bot.py +++ b/hoyo_buddy/bot/bot.py @@ -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)