Fix Command.error decorator (#2478)

This shouldn't be a coroutine.
This commit is contained in:
DiscordLiz 2019-02-22 15:13:22 -05:00 committed by Toby Harradine
parent c70a44e0fe
commit 3637804929

View File

@ -397,7 +397,7 @@ class Command(CogCommandMixin, commands.Command):
break break
return old_rule, new_rule return old_rule, new_rule
async def error(self, coro): def error(self, coro):
""" """
A decorator that registers a coroutine as a local error handler. A decorator that registers a coroutine as a local error handler.
@ -434,7 +434,7 @@ class Command(CogCommandMixin, commands.Command):
discord.ClientException discord.ClientException
The coroutine is not actually a coroutine. The coroutine is not actually a coroutine.
""" """
return await super().error(coro) return super().error(coro)
class GroupMixin(discord.ext.commands.GroupMixin): class GroupMixin(discord.ext.commands.GroupMixin):