Skip to content
Snippets Groups Projects
Commit 6eda0f09 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[algorithm] Read and decode from file before loading json

parent f6a3be99
No related branches found
No related tags found
2 merge requests!17Merge development branch 1.5.x,!10Py3 compatibility
......@@ -356,7 +356,7 @@ class Algorithm(object):
return
with open(json_path, 'rb') as f:
self.data = simplejson.load(f)
self.data = simplejson.loads(f.read().decode('utf-8'))
self.code_path = self.storage.code.path
self.code = self.storage.code.load()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment