I hit this a few times while setting up CI.
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5433>
trace_path = TRACES_DB_PATH + trace['path']
if project_url is None:
assert(repo_commit is None)
- assert(os.path.exists(trace_path))
+ if not os.path.exists(trace_path):
+ print("{} missing".format(trace_path))
+ sys.exit(1)
return
os.makedirs(os.path.dirname(trace_path), exist_ok=True)