From 8e0105355ca20e79bc581ef9890e0df90764689b Mon Sep 17 00:00:00 2001 From: bobloy Date: Thu, 1 Oct 2020 14:33:24 -0400 Subject: [PATCH] fix ww_stop bug when no game is running --- werewolf/werewolf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/werewolf/werewolf.py b/werewolf/werewolf.py index bd68a6f..8ea5783 100644 --- a/werewolf/werewolf.py +++ b/werewolf/werewolf.py @@ -285,7 +285,8 @@ class Werewolf(Cog): game = await self._get_game(ctx) game.game_over = True - game.current_action.cancel() + if game.current_action: + game.current_action.cancel() await ctx.maybe_send_embed("Game has been stopped") @commands.guild_only()