mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-25 10:32:59 +00:00
[commands] Fix cog error detection in the default global error handler.
This commit is contained in:
@@ -206,7 +206,7 @@ class BotBase(GroupMixin):
|
|||||||
|
|
||||||
cog = context.cog
|
cog = context.cog
|
||||||
if cog:
|
if cog:
|
||||||
attr = '__{0.__class__.__name__}_error'.format(cog)
|
attr = '_{0.__class__.__name__}__error'.format(cog)
|
||||||
if hasattr(cog, attr):
|
if hasattr(cog, attr):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user