From ed7466621ffc022ff3d845867840af1604424f85 Mon Sep 17 00:00:00 2001 From: kapi2289 Date: Fri, 20 Jul 2018 11:51:03 +0200 Subject: [PATCH] Wrong change --- fbchat/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fbchat/utils.py b/fbchat/utils.py index 85e94c9..a7e18cd 100644 --- a/fbchat/utils.py +++ b/fbchat/utils.py @@ -153,7 +153,7 @@ def strip_to_json(text): try: return text[text.index('{'):] except ValueError: - raise FBchatException('No JSON object found: {}, {}'.format(repr(text), text.index('{'))) + raise FBchatException('No JSON object found: {!r}'.format(text)) def get_decoded_r(r): return get_decoded(r._content) @@ -220,7 +220,7 @@ def check_request(r, as_json=True): try: j = json.loads(content) except ValueError: - raise FBchatFacebookError('Error while parsing JSON: {}'.format(repr(content))) + raise FBchatFacebookError('Error while parsing JSON: {!r}'.format(content)) check_json(j) return j else: