get game before ending it

This commit is contained in:
Jannes Höke 2016-05-27 11:31:06 +02:00
parent 87251eeb2e
commit 569850fade

2
bot.py
View file

@ -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