Skip to content

Commit 6ef551b

Browse files
committed
Can’t use loads on bytes in python 3?
1 parent 002f164 commit 6ef551b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotly/graph_reference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def get_graph_reference():
5353
"the schema from '{}' failed.".format(graph_reference_url)
5454
)
5555
else:
56-
data = json.loads(response.content)
56+
data = json.loads(str(response.content)) # str for PY2/3 compat.
5757
if data['modified']:
5858
graph_reference = data['schema']
5959

0 commit comments

Comments
 (0)