Commit ce853012 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

fix: sometime the file is empty

parent fe9685a75f5a
Pipeline #16994 passed with stages
in 4 minutes and 20 seconds
...@@ -71,7 +71,11 @@ for cube in get_all_cubes(): ...@@ -71,7 +71,11 @@ for cube in get_all_cubes():
for artifact in artifacts_archive.filelist: for artifact in artifacts_archive.filelist:
if artifact.filename.endswith("-deprecated-warnings.json"): if artifact.filename.endswith("-deprecated-warnings.json"):
content = json.loads(artifacts_archive.read(artifact.filename).decode()) content = artifacts_archive.read(artifact.filename).decode()
if not content:
continue
content = json.loads(content)
all_artifacts[cube.name].extend(content) all_artifacts[cube.name].extend(content)
result = defaultdict(lambda: {"count": 0, "path": set(), "projects": defaultdict(int)}) result = defaultdict(lambda: {"count": 0, "path": set(), "projects": defaultdict(int)})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment