From 06930ebe2ca4c5a86914d80b770a2a254edfeb59 Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Fri, 24 Apr 2020 03:33:12 +0200 Subject: [PATCH] Patched the Patch where the Patch patched too much --- redbot/cogs/trivia/trivia.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redbot/cogs/trivia/trivia.py b/redbot/cogs/trivia/trivia.py index 52671fcfe..d3fa819db 100644 --- a/redbot/cogs/trivia/trivia.py +++ b/redbot/cogs/trivia/trivia.py @@ -321,6 +321,9 @@ class Trivia(commands.Cog): async def trivia_stop(self, ctx: commands.Context): """Stop an ongoing trivia session.""" session = self._get_trivia_session(ctx.channel) + if session is None: + await ctx.send(_("There is no ongoing trivia session in this channel.")) + return await session.end_game() session.force_stop() await ctx.send(_("Trivia stopped."))