Skip to content

Commit

Permalink
Handle errored build in is_travis_finished. Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
carlvitzthum committed Jun 10, 2019
1 parent 3644e14 commit 566b17a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dcicutils/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Version information."""

# The following line *must* be the last in the module, exactly as formatted:
__version__ = "0.7.3"
__version__ = "0.7.4"
2 changes: 1 addition & 1 deletion dcicutils/beanstalk_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def is_travis_finished(build_id):
resp = requests.get(url, headers=headers)
logger.info("Travis build response: %s" % resp.text)
state = resp.json()['state']
if resp.ok and state == 'failed':
if resp.ok and state in ['failed', 'errored']:
raise Exception('Build Failed')
elif resp.ok and state == 'passed':
is_ready = True
Expand Down

0 comments on commit 566b17a

Please sign in to comment.