From a0f37f8e851708fc1f4a68b73f6dac6688a11b1f Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 10 Jun 2016 01:07:03 -0400 Subject: [PATCH] [commands] Fix issue with proper local error handlers not beign called. --- discord/ext/commands/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 6fc36a3ce..271bc966d 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -641,7 +641,7 @@ class Bot(GroupMixin, discord.Client): try: yield from command.invoke(ctx) except CommandError as e: - command.dispatch_error(e, ctx) + ctx.command.dispatch_error(e, ctx) else: self.dispatch('command_completion', command, ctx) else: