mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-13 09:19:48 +00:00
[commands] Fix default error handler to work with the switch.
This commit is contained in:
parent
5106feaf57
commit
8ef984746a
@ -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…
x
Reference in New Issue
Block a user