get game before ending it
This commit is contained in:
parent
87251eeb2e
commit
569850fade
1 changed files with 1 additions and 1 deletions
2
bot.py
2
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
|
||||
|
|
Loading…
Reference in a new issue