From dbe946a767d9ae28e4e6c02f3d98042144473cb7 Mon Sep 17 00:00:00 2001 From: sirtezza451 Date: Thu, 18 Apr 2019 20:54:30 +0930 Subject: [PATCH] [commands] Update default on_command_error --- discord/ext/commands/bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index febe640f6..a7280a9af 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -161,8 +161,7 @@ class BotBase(GroupMixin): cog = context.cog if cog: - attr = '_{0.__class__.__name__}__error'.format(cog) - if hasattr(cog, attr): + if Cog._get_overridden_method(cog.cog_command_error) is not None: return print('Ignoring exception in command {}:'.format(context.command), file=sys.stderr)