[commands] Guarantee that local error handler is called before generic.

This commit is contained in:
Rapptz
2017-01-15 21:55:50 -05:00
parent 11b54d67c9
commit ea72d5e63d
2 changed files with 4 additions and 4 deletions

View File

@@ -632,7 +632,7 @@ class BotBase(GroupMixin):
try:
yield from ctx.command.invoke(ctx)
except CommandError as e:
ctx.command.dispatch_error(e, ctx)
yield from ctx.command.dispatch_error(e, ctx)
else:
self.dispatch('command_completion', ctx)
elif ctx.invoked_with: