From ded578e6b81ca2a39e383472a5a0a4071586f94c Mon Sep 17 00:00:00 2001 From: ToxicKidz <78174417+ToxicKidz@users.noreply.github.com> Date: Thu, 22 Apr 2021 20:14:15 -0400 Subject: fix: Add a missing return statement --- bot/decorators.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot/decorators.py b/bot/decorators.py index 5d9d74bd7..2d0f8bf0d 100644 --- a/bot/decorators.py +++ b/bot/decorators.py @@ -141,6 +141,7 @@ def redirect_output( elif categories and ctx.channel.category.id not in categories: log.trace(f"{ctx.author} used {ctx.command} in a category that can bypass output redirection") await func(self, ctx, *args, **kwargs) + return redirect_channel = ctx.guild.get_channel(destination_channel) old_channel = ctx.channel -- cgit v1.2.3