Skip to content
This repository was archived by the owner on Feb 13, 2022. It is now read-only.

Commit 72bb206

Browse files
committed
Ensure ext error isn't handled in the error handler
1 parent f3724b5 commit 72bb206

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bot/exts/utils/extensions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ async def cog_command_error(self, ctx: Context, error: Exception) -> None:
7979
"""Handle BadArgument errors locally to prevent the help command from showing."""
8080
if isinstance(error, commands.BadArgument):
8181
await ctx.send(str(error))
82+
error.handled = True
8283
return
8384
logger.error(f"Unhandled error in ext cog: {error}")
8485

0 commit comments

Comments
 (0)