Commit 4d81d151 authored by Ralf Jung's avatar Ralf Jung

make the extract script work better

parent 42281a34
Pipeline #2215 passed with stage
......@@ -61,9 +61,8 @@ for commit in parse_log.parse_git_commits(args.commits):
# no build
continue
build = first(sorted(builds.json(), key = lambda b: -int(b['id'])))
assert build is not None
if build['status'] == 'failed':
# build failed
if build is None or build['status'] == 'failed':
# build failed (or missing...??)
continue
if build['status'] == 'running':
# build still running, don't fetch this or any later commit
......
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