mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
log ignored non slash command errors
This commit is contained in:
1 parent
60b518f5e6
commit
d68745f624
1 file changed
+1
-1
+1
-1
@@ -80,7 +80,7 @@ class Errors(commands.Cog):
|
||||
# Ignored errors
|
||||
ignored_errors = (commands.CommandNotFound, commands.DisabledCommand)
|
||||
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