File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def get(self, path = ''):
54
54
client = AsyncHTTPClient ()
55
55
request = HTTPRequest (api_path , user_agent = 'JupyterLab GitHub' )
56
56
response = yield client .fetch (request )
57
- data = json .loads (response .body )
57
+ data = json .loads (response .body . decode ( 'utf-8' ) )
58
58
59
59
# Check if we need to paginate results.
60
60
# If so, get pages until all the results
@@ -64,7 +64,7 @@ def get(self, path = ''):
64
64
request = HTTPRequest (next_page_path , user_agent = 'JupyterLab GitHub' )
65
65
response = yield client .fetch (request )
66
66
next_page_path = self ._maybe_get_next_page_path (response )
67
- data .extend (json .loads (response .body ))
67
+ data .extend (json .loads (response .body . decode ( 'utf-8' ) ))
68
68
69
69
# Send the results back.
70
70
self .finish (json .dumps (data ))
You can’t perform that action at this time.
0 commit comments