From b9c7b051763e11d2e3f9b526b4773c9e842a479f Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 5 Jun 2016 00:35:27 -0400 Subject: [commands] Unify Command.handle_local_error into general dispatcher. --- discord/ext/commands/bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'discord/ext/commands/bot.py') diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 8814021b..6fc36a3c 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -641,8 +641,7 @@ class Bot(GroupMixin, discord.Client): try: yield from command.invoke(ctx) except CommandError as e: - command.handle_local_error(e, ctx) - self.dispatch('command_error', e, ctx) + command.dispatch_error(e, ctx) else: self.dispatch('command_completion', command, ctx) else: -- cgit v1.2.3