Fix content.json update and verify on Python 3.5
This commit is contained in:
parent
0a1c22530a
commit
77530f13ee
2 changed files with 6 additions and 2 deletions
|
@ -117,7 +117,7 @@ class FileRequest(object):
|
|||
return
|
||||
|
||||
try:
|
||||
content = json.loads(params["body"])
|
||||
content = json.loads(params["body"].decode())
|
||||
except Exception as err:
|
||||
self.log.debug("Update for %s is invalid JSON: %s" % (inner_path, err))
|
||||
self.response({"error": "File invalid JSON"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue