fix logging error on every ignored prefix command error
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b6915bf135
commit
4b82e92d15
1 file changed
+1
-1
@@ -80,7 +80,7 @@ class Errors(commands.Cog):
|
||||
# Ignored errors
|
||||
ignored_errors = (commands.CommandNotFound, commands.DisabledCommand, commands.CheckFailure)
|
||||
if isinstance(error, ignored_errors):
|
||||
self.bot.logger.info("Ignored error", error)
|
||||
self.bot.logger.info(f"Ignored error: {error!r}")
|
||||
return
|
||||
|
||||
# Errors that should prompt a help message
|
||||
|
||||
Reference in new issue
Block a user