From 10d3bd6fd545d50c5a34ef66bf6b74217fd280fc Mon Sep 17 00:00:00 2001 From: Lucia Vargas Date: Mon, 14 Sep 2026 16:25:31 +0200 Subject: [PATCH] Handle error related to user. --- probe_scraper/probe_expiry_alert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe_scraper/probe_expiry_alert.py b/probe_scraper/probe_expiry_alert.py index 98dffb37..c3e52c9f 100644 --- a/probe_scraper/probe_expiry_alert.py +++ b/probe_scraper/probe_expiry_alert.py @@ -288,7 +288,7 @@ def check_bugzilla_user_exists(email: str, api_key: str): user_response.raise_for_status() except requests.exceptions.HTTPError as e: # 400 is raised if user does not exist - if e.response.status_code == 400 and e.response.json()["code"] == 51: + if e.response.status_code in (400, 404) and e.response.json()["code"] == 51: return False raise # As of Sept 2020, api seems to be returning 200 response with an unknown