From d98b4e919cc1198973dfbe7df217fee0ec43d7c7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 27 Mar 2017 12:45:22 +0200 Subject: [PATCH] Removed error catching in send_message --- telegram.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/telegram.py b/telegram.py index e2ac9cda..9b4e39a1 100644 --- a/telegram.py +++ b/telegram.py @@ -231,11 +231,7 @@ class Chat: # TODO: This could give problems if a class inherits Bot if not isinstance(bot, Bot): raise TypeError("bot is not an instance of Bot.") - # Catch TelegramAPI exceptions - try: - await bot.api_request("sendMessage", text=text, chat_id=self.chat_id, **params) - except TelegramAPIError as e: - print(f"[Telegram] sendMessage failed: {e.args[0]}") + await bot.api_request("sendMessage", text=text, chat_id=self.chat_id, **params) class User: