aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
diff options
context:
space:
mode:
Diffstat (limited to 'discord/ext')
-rw-r--r--discord/ext/commands/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index 0f7d8a76..f5218659 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -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