Handle Product Pages 404s gracefully

Fixes: #1663
This commit is contained in:
Brendan Reilly
2020-12-01 12:16:51 -05:00
parent 2357ab4431
commit a5ea3033ba

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):