We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d77797 commit a106352Copy full SHA for a106352
telegram/utils/request.py
@@ -151,7 +151,7 @@ def _parse(json_data):
151
data = json.loads(decoded_s)
152
except UnicodeDecodeError:
153
logging.getLogger(__name__).debug(
154
- 'Logging raw invalid UTF-8 response:\n%s', str(json_data))
+ 'Logging raw invalid UTF-8 response:\n%r', json_data)
155
raise TelegramError('Server response could not be decoded using UTF-8')
156
except ValueError:
157
raise TelegramError('Invalid server response')
0 commit comments