[commands] Fix issue with proper local error handlers not beign called.

This commit is contained in:
Rapptz 2016-06-10 01:07:03 -04:00
parent 631cc5a7d6
commit a0f37f8e85

View File

@ -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: