mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-25 18:43:00 +00:00
[commands] Guarantee that local error handler is called before generic.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user