From 779abe83c4aef933bd31275996ca6850fdb7c0d0 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Thu, 20 Aug 2020 13:39:20 +0200 Subject: [PATCH] decode profiles.json content from bytes to string --- misc/collect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/collect.py b/misc/collect.py index 73370ab..e22d419 100755 --- a/misc/collect.py +++ b/misc/collect.py @@ -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( -- 2.30.2