From c81b912dccdf200966087183ab1f2f3bd9c6d6de Mon Sep 17 00:00:00 2001 From: Matthew Long Date: Thu, 8 Nov 2018 13:28:41 +0900 Subject: [PATCH] Adding utf8 decode to exception response content. --- coincheck_api/clients/api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coincheck_api/clients/api_client.py b/coincheck_api/clients/api_client.py index 98c71c8..a3bd526 100644 --- a/coincheck_api/clients/api_client.py +++ b/coincheck_api/clients/api_client.py @@ -39,5 +39,5 @@ def execute_http_call(self, path, method, headers=None, data=None): else: raise CoinCheckApiException( "API execute failure. response status_code={}, headers={}, body={}".format( - response.status_code, response.headers, response.content + response.status_code, response.headers, response.content.decode('utf8') ))