From d548a0c2b8da08c18dde54cb793900b751cac6ca Mon Sep 17 00:00:00 2001 From: rshipp Date: Tue, 30 Jan 2018 11:33:42 -0600 Subject: [PATCH] Fix a unicode issue in newly imported function --- sandboxapi/falcon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandboxapi/falcon.py b/sandboxapi/falcon.py index 1696c18..822c9fd 100644 --- a/sandboxapi/falcon.py +++ b/sandboxapi/falcon.py @@ -177,7 +177,7 @@ def full_report (self, item_id, report_format="json"): # if response is JSON, return it as an object if report_format == "json": try: - return json.loads(response.content) + return json.loads(response.content.decode('utf-8')) except ValueError: pass