PR#1664: Handle Product Pages 404s gracefully

Merges #1664
https://pagure.io/fm-orchestrator/pull-request/1664

Fixes: #1663
https://pagure.io/fm-orchestrator/issue/1663
Product Pages check fails build on 404
This commit is contained in:
Mike McLean
2020-12-03 10:15:23 -05:00

View File

@@ -387,6 +387,8 @@ def _process_support_streams(db_session, mmd, params):
try:
pp_rv = requests.get(schedule_url, timeout=15)
# raise exception if we receive 404
pp_rv.raise_for_status()
pp_json = pp_rv.json()
# Catch requests failures and JSON parsing errors
except (requests.exceptions.RequestException, ValueError):