diff options
| author | 2019-01-12 19:17:46 +0100 | |
|---|---|---|
| committer | 2019-01-12 19:17:46 +0100 | |
| commit | 0ff3bf452b35c3c4ded0ab88bff4635eb5c5467f (patch) | |
| tree | d9bc16ea6260c2edcb40457e8891d3397a0af9fe | |
| parent | Merge pull request #266 from python-discord/bigbrother-add-watch-message-to-h... (diff) | |
| parent | Merge branch 'master' into help-catch-superclass (diff) | |
Merge pull request #273 from python-discord/help-catch-superclass
Changing the exception class caught so help doesn't break in the future
| -rw-r--r-- | bot/cogs/help.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/help.py b/bot/cogs/help.py index c82a25417..ded068123 100644 --- a/bot/cogs/help.py +++ b/bot/cogs/help.py @@ -6,10 +6,10 @@ from contextlib import suppress from discord import Colour, Embed, HTTPException from discord.ext import commands +from discord.ext.commands import CheckFailure from fuzzywuzzy import fuzz, process from bot import constants -from bot.decorators import InChannelCheckFailure from bot.pagination import ( DELETE_EMOJI, FIRST_EMOJI, LAST_EMOJI, LEFT_EMOJI, LinePaginator, RIGHT_EMOJI, @@ -435,7 +435,7 @@ class HelpSession: # the mean time. try: can_run = await command.can_run(self._ctx) - except InChannelCheckFailure: + except CheckFailure: can_run = False if not can_run: |