Skip to content

Commit

Permalink
check if finished.json exists :-(
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyzacy committed Jan 15, 2019
1 parent fcfbad5 commit 11ba01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gubernator/pull_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def commit(started, finished):
return started['pull'].split(':')[-1]
if 'version' in started:
return started['version'].split('+')[-1]
if 'revision' in finished:
if finished and 'revision' in finished:
return finished['revision']
return 'unknown'

Expand Down

0 comments on commit 11ba01e

Please sign in to comment.