1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2025-02-16 13:24:06 +00:00
This commit is contained in:
Steffo 2016-12-24 19:15:29 +01:00
parent d76d0d1095
commit 0baf19e61e

View file

@ -961,7 +961,10 @@ def power(bot, update):
game = findgamebyname(cmd[1])
# Se non lo trovi con il nome, prova con l'id
if game is None:
game = findgamebyid(int(cmd[1]))
try:
game = findgamebyid(int(cmd[1]))
except ValueError:
pass
if game is not None:
player = game.findplayerbyid(int(update.message.from_user['id']))
if player is not None: