From 4c541c1255136800e3babb27289bf15c944f4d56 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 4 Dec 2016 19:43:19 +0100 Subject: [PATCH] Fixed another possible bug --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 23e80e7..f32ce45 100644 --- a/main.py +++ b/main.py @@ -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."""