diff options
| author | Rapptz <[email protected]> | 2017-05-10 19:36:46 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-10 19:36:46 -0400 |
| commit | 8ef984746a85eac9f5d2784c2f00883737aa09b3 (patch) | |
| tree | 0f4d58177a715756a55f43fbfee68c68fa951f70 | |
| parent | Allow comparison between User and Member instances again. (diff) | |
| download | discord.py-8ef984746a85eac9f5d2784c2f00883737aa09b3.tar.xz discord.py-8ef984746a85eac9f5d2784c2f00883737aa09b3.zip | |
[commands] Fix default error handler to work with the switch.
| -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 6d45f275..3bf4462a 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. |