aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsirtezza451 <[email protected]>2019-04-18 20:54:30 +0930
committerRapptz <[email protected]>2019-04-18 07:58:28 -0400
commitdbe946a767d9ae28e4e6c02f3d98042144473cb7 (patch)
tree3b29f42e448719d0dd4660f7ae7e9b991289f043
parentAdd delay kwarg to message.delete() (diff)
downloaddiscord.py-dbe946a767d9ae28e4e6c02f3d98042144473cb7.tar.xz
discord.py-dbe946a767d9ae28e4e6c02f3d98042144473cb7.zip
[commands] Update default on_command_error
-rw-r--r--discord/ext/commands/bot.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index febe640f..a7280a9a 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)