Browse Source

[commands] Fix default error handler to work with the switch.

pull/572/head
Rapptz 8 years ago
parent
commit
8ef984746a
  1. 2
      discord/ext/commands/bot.py

2
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.

Loading…
Cancel
Save