Skip to content
Snippets Groups Projects
Commit 4d81d151 authored by Ralf Jung's avatar Ralf Jung
Browse files

make the extract script work better

parent 42281a34
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment