Skip to content

Commit

Permalink
bug 1399459 - halt if there are no versions (#3983)
Browse files Browse the repository at this point in the history
When fetching normalization data, we really need valid product versions. If
there aren't any valid product versions, then we should throw our hands in the
air and give up with an error.
  • Loading branch information
willkg authored Sep 13, 2017
1 parent f800a0b commit 2f1cc54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/fetch_normalization_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ def main(args):
for product in args.products.split(','):
# Fetch versions from the product_versions table that we should pull data for
versions = get_versions(conn, product)
if not versions:
print('ERROR: No versions to fetch for %s. That seems bad. Exiting.' % product)
return 1

for platform in PLATFORMS:
print('Fetching data for (%s, %s, %s)...' % (product, versions, platform))
Expand Down

0 comments on commit 2f1cc54

Please sign in to comment.