decode profiles.json content from bytes to string
authorMoritz Warning <moritzwarning@web.de>
Thu, 20 Aug 2020 11:39:20 +0000 (13:39 +0200)
committerMoritz Warning <moritzwarning@web.de>
Thu, 20 Aug 2020 12:43:02 +0000 (14:43 +0200)
misc/collect.py

index 73370abb7ac06b444d95e5e4110dd8e7333f6ccf..e22d4197a795296a28831b952283c16263f32aaa 100755 (executable)
@@ -50,7 +50,7 @@ def merge_profiles(profiles, download_url):
                 output["models"][title]["code"] = code
 
     for path, content in profiles.items():
-        obj = json.loads(content)
+        obj = json.loads(content.decode("utf-8"))
 
         if obj["metadata_version"] != SUPPORTED_METADATA_VERSION:
             sys.stderr.write(