aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-11-21 09:37:08 +0200
committerGravatar GitHub <[email protected]>2020-11-21 09:37:08 +0200
commit6ff9a5e1500805f98ee136757192c868fa17c764 (patch)
treefca475667fa31fb7027b8d49cea3e923898d8eb5
parentFix import order of help command file (diff)
Don't log CommandError, handle it as check fail
-rw-r--r--bot/exts/info/help.py4
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