mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
[commands] Update default on_command_error
This commit is contained in:
parent
0f48b78987
commit
dbe946a767
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user