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

make the extract script work better

parent 42281a34
......@@ -61,9 +61,8 @@ for commit in parse_log.parse_git_commits(args.commits):
# no build
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...??)
if build['status'] == 'running':
# build still running, don't fetch this or any later commit
Supports Markdown
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