From 396b63dead408f98e7d3fc489226dfd12ff7b6e7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 26 May 2016 09:18:07 +0000 Subject: [PATCH] : --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index c3cbadc..04ed894 100644 --- a/main.py +++ b/main.py @@ -455,7 +455,7 @@ def vote(bot, update): game = findgamebyid(update.message.chat['id']) if game is not None and game.phase is 'Voting': player = game.findplayerbyid(update.message.from_user['id']) - if player is not None + if player is not None: if player.alive: target = game.findplayerbyusername(update.message.text.split(' ')[1]) if target is not None: