Skip to content

Commit

Permalink
add encode() instead of six byte_type for compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyria committed Apr 27, 2017
1 parent 534db63 commit 4493a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esipy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def _request(self, req_and_resp, raw_body_only=None, opt=None):
res = CachedResponse(
status_code=500,
headers={},
content=six.binary_type('{"error": "%s"}' % str(e)),
content=('{"error": "%s"}' % str(e)).encode('latin-1'),
url=prepared_request.url
)

Expand Down

0 comments on commit 4493a2d

Please sign in to comment.