Browse Source

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

pull/204/merge
Rapptz 9 years ago
parent
commit
a0f37f8e85
  1. 2
      discord/ext/commands/bot.py

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

Loading…
Cancel
Save