Skip to content

Commit c421584

Browse files
sailor777gonchik
authored andcommitted
Update rest_client.py (#854)
FIX UnicodeEncodeError: 'ascii' codec can't encode characters in position 5054-5057: ordinal not in range(128) for python2.7
1 parent 8fa1309 commit c421584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atlassian/rest_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ def request(
228228
)
229229
response.encoding = "utf-8"
230230

231-
log.debug("HTTP: {} {} -> {} {}".format(method, path, response.status_code, response.reason))
232-
log.debug("HTTP: Response text -> {}".format(response.text))
231+
log.debug(u"HTTP: {} {} -> {} {}".format(method, path, response.status_code, response.reason))
232+
log.debug(u"HTTP: Response text -> {}".format(response.text))
233233
if self.advanced_mode:
234234
return response
235235

0 commit comments

Comments
 (0)