From 569850fadef2a5b29541d781cde6255d968a7977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Fri, 27 May 2016 11:31:06 +0200 Subject: [PATCH] get game before ending it --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index b9bd225..6ea1f9c 100644 --- a/bot.py +++ b/bot.py @@ -192,8 +192,8 @@ def status_update(bot, update): user = update.message.left_chat_member try: - gm.leave_game(user, chat) game = gm.player_for_user_in_chat(user, chat).game + gm.leave_game(user, chat) except NoGameInChatError: pass