From 8ef984746a85eac9f5d2784c2f00883737aa09b3 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 10 May 2017 19:36:46 -0400 Subject: [PATCH] [commands] Fix default error handler to work with the switch. --- discord/ext/commands/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 6d45f275a..3bf4462a2 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -188,7 +188,7 @@ class BotBase(GroupMixin): yield from super().close() @asyncio.coroutine - def on_command_error(self, exception, context): + def on_command_error(self, context, exception): """|coro| The default command error handler provided by the bot.