aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-01-11 09:41:31 -0500
committerGravatar GitHub <[email protected]>2019-01-11 09:41:31 -0500
commitf81ff25fdebd77a859f12694b976b80014b099cd (patch)
treef3cc92e5a7b5e53ddbd1cc95c9445726c7337685
parentCatching the superclass CheckFailure instead of the subclass (diff)
parentRevert "Catching the superclass CheckFailure instead of the subclass" (diff)
Merge pull request #268 from python-discord/reverting-accidental-push-to-master
Revert "Catching the superclass CheckFailure instead of the subclass"
-rw-r--r--bot/cogs/help.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/help.py b/bot/cogs/help.py
index ded068123..c82a25417 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 CheckFailure:
+ except InChannelCheckFailure:
can_run = False
if not can_run: