mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-24 10:02:56 +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
|
||||
if cog:
|
||||
attr = '__{0.__class__.__name__}_error'.format(cog)
|
||||
attr = '_{0.__class__.__name__}__error'.format(cog)
|
||||
if hasattr(cog, attr):
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user