Skip to content

Commit

Permalink
Don't throw exception if there are no valid releases #132
Browse files Browse the repository at this point in the history
  • Loading branch information
deanishe committed Jul 16, 2018
1 parent 42422ff commit c2850b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion workflow/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ def check_update(github_slug, current_version, prereleases=False):
releases = get_valid_releases(github_slug, prereleases)

if not len(releases):
raise ValueError('no valid releases for %s', github_slug)
wf().logger.warning('no valid releases for %s', github_slug)
wf().cache_data('__workflow_update_status', {'available': False})
return False

wf().logger.info('%d releases for %s', len(releases), github_slug)

Expand Down
2 changes: 1 addition & 1 deletion workflow/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.33
1.34

0 comments on commit c2850b9

Please sign in to comment.