1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2024-11-25 23:24:18 +00:00

Fixed another possible bug

This commit is contained in:
Steffo 2016-12-04 19:43:19 +01:00
parent d4cd4b50e6
commit 4c541c1255

View file

@ -259,7 +259,10 @@ class Player:
def message(self, bot, text):
"""Manda un messaggio privato al giocatore."""
bot.sendMessage(self.tid, text, parse_mode=ParseMode.MARKDOWN)
try:
bot.sendMessage(self.tid, text, parse_mode=ParseMode.MARKDOWN)
except TelegramError:
pass
def kill(self, bot, game):
"""Uccidi il giocatore."""