From 1bb5dd224bc863709852fa34aff8d022083384fc Mon Sep 17 00:00:00 2001 From: Noam Meltzer Date: Sat, 7 Jan 2017 23:09:06 +0200 Subject: [PATCH] Fix bad formatting of BadRequest exception message fixes #470 --- telegram/utils/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/utils/request.py b/telegram/utils/request.py index f25c82982..31b02ffeb 100644 --- a/telegram/utils/request.py +++ b/telegram/utils/request.py @@ -173,7 +173,7 @@ class Request(object): if resp.status in (401, 403): raise Unauthorized() elif resp.status == 400: - raise BadRequest(repr(message)) + raise BadRequest(message) elif resp.status == 404: raise InvalidToken() elif resp.status == 502: