aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--metricity/exts/error_handler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/metricity/exts/error_handler.py b/metricity/exts/error_handler.py
index 3d42d05..0f35de2 100644
--- a/metricity/exts/error_handler.py
+++ b/metricity/exts/error_handler.py
@@ -30,9 +30,9 @@ class ErrorHandler(commands.Cog):
@commands.Cog.listener()
async def on_command_error(self, ctx: commands.Context, e: commands.errors.CommandError) -> None:
"""Provide generic command error handling."""
- if any(isinstance(e, suppressed_error) for suppressed_error in SUPPRESSED_ERRORS):
+ if isinstance(e, SUPPRESSED_ERRORS):
log.debug(
- f"Command {ctx.command} invoked by {ctx.message.author} with error "
+ f"Command {ctx.invoked_with} invoked by {ctx.message.author} with error "
f"{e.__class__.__name__}: {e}"
)