From 3637804929dcbbf4ae49048ad6923cfb88d0b91a Mon Sep 17 00:00:00 2001 From: DiscordLiz <47602820+DiscordLiz@users.noreply.github.com> Date: Fri, 22 Feb 2019 15:13:22 -0500 Subject: [PATCH] Fix Command.error decorator (#2478) This shouldn't be a coroutine. --- redbot/core/commands/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redbot/core/commands/commands.py b/redbot/core/commands/commands.py index bd20554be..32ac33d51 100644 --- a/redbot/core/commands/commands.py +++ b/redbot/core/commands/commands.py @@ -397,7 +397,7 @@ class Command(CogCommandMixin, commands.Command): break 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. @@ -434,7 +434,7 @@ class Command(CogCommandMixin, commands.Command): discord.ClientException The coroutine is not actually a coroutine. """ - return await super().error(coro) + return super().error(coro) class GroupMixin(discord.ext.commands.GroupMixin):