diff options
| author | Rapptz <[email protected]> | 2016-06-10 01:07:03 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-06-10 01:07:03 -0400 |
| commit | a0f37f8e851708fc1f4a68b73f6dac6688a11b1f (patch) | |
| tree | c424a605d06ac665829c433d4d902b841cf0afb1 | |
| parent | Add Client.move_channel to change channel positions. (diff) | |
| download | discord.py-a0f37f8e851708fc1f4a68b73f6dac6688a11b1f.tar.xz discord.py-a0f37f8e851708fc1f4a68b73f6dac6688a11b1f.zip | |
[commands] Fix issue with proper local error handlers not beign called.
| -rw-r--r-- | discord/ext/commands/bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 6fc36a3c..271bc966 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: |