Skip to content

Commit 7d77797

Browse files
committed
Use formatting of logger
1 parent 5124414 commit 7d77797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/utils/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _parse(json_data):
151151
data = json.loads(decoded_s)
152152
except UnicodeDecodeError:
153153
logging.getLogger(__name__).debug(
154-
'Logging raw invalid UTF-8 response:\n{}'.format(str(json_data)))
154+
'Logging raw invalid UTF-8 response:\n%s', str(json_data))
155155
raise TelegramError('Server response could not be decoded using UTF-8')
156156
except ValueError:
157157
raise TelegramError('Invalid server response')

0 commit comments

Comments
 (0)