diff options
| author | 2020-11-21 09:37:08 +0200 | |
|---|---|---|
| committer | 2020-11-21 09:37:08 +0200 | |
| commit | 6ff9a5e1500805f98ee136757192c868fa17c764 (patch) | |
| tree | fca475667fa31fb7027b8d49cea3e923898d8eb5 | |
| parent | Fix import order of help command file (diff) | |
Don't log CommandError, handle it as check fail
| -rw-r--r-- | bot/exts/info/help.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/help.py b/bot/exts/info/help.py index 9d7f0702e..518330370 100644 --- a/bot/exts/info/help.py +++ b/bot/exts/info/help.py @@ -181,8 +181,8 @@ class CustomHelpCommand(HelpCommand): command_details += "***You cannot run this command.***\n\n" except DisabledCommand: command_details += "***This command is disabled.***\n\n" - except CommandError as e: - log.warning(f"An exception raised when trying to check {command.name} command running permission: {e}") + except CommandError: + command_details += "***You cannot run this command.***\n\n" command_details += f"*{command.help or 'No details provided.'}*\n" embed.description = command_details |