From e7694ffc57d0331684ebdf5a7de47523047734be Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 26 Mar 2017 13:26:49 +0200 Subject: [PATCH] fix error logs --- telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram.py b/telegram.py index ad778043..60b7b03b 100644 --- a/telegram.py +++ b/telegram.py @@ -145,7 +145,7 @@ class Bot: if "description" in data: error = data["description"] if response.status != 200: - raise TelegramAPIError(f"Request returned {response.status} {response.reason}\n{}") + raise TelegramAPIError(f"Request returned {response.status} {response.reason}") # Check for errors in the response if not data["ok"]: error = data["description"]