Skip to content

Commit 3388348

Browse files
author
Fedor Baart
committed
decode bytes in tracker
1 parent 5b6fc34 commit 3388348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmi/tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def post(self):
207207
"""Register a new model (models)"""
208208
self.set_header("Content-Type", "application/json")
209209
key = uuid.uuid4().hex
210-
metadata = json.loads(self.request.body)
210+
metadata = json.loads(self.request.body.decode())
211211
metadata["uuid"] = key
212212
self.database[key] = metadata
213213
result = json.dumps({"uuid": key})

0 commit comments

Comments
 (0)