summaryrefslogtreecommitdiff
path: root/yaksh/code_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/code_server.py')
-rwxr-xr-x[-rw-r--r--]yaksh/code_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/code_server.py b/yaksh/code_server.py
index 7bacc7f..d74d35b 100644..100755
--- a/yaksh/code_server.py
+++ b/yaksh/code_server.py
@@ -208,7 +208,7 @@ def get_result(url, uid, block=False):
'''
def _get_data():
r = requests.get(urllib.parse.urljoin(url, str(uid)))
- return json.loads(r.content)
+ return json.loads(r.content.decode('utf-8'))
data = _get_data()
if block:
while data.get('status') != 'done':