mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2025-02-16 13:24:06 +00:00
risolto #42
This commit is contained in:
parent
d76d0d1095
commit
0baf19e61e
1 changed files with 4 additions and 1 deletions
5
main.py
5
main.py
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue