diff --git a/backend/pashub_fetcher/pashub_client.py b/backend/pashub_fetcher/pashub_client.py index 8ae84e617..3d581293f 100644 --- a/backend/pashub_fetcher/pashub_client.py +++ b/backend/pashub_fetcher/pashub_client.py @@ -140,6 +140,8 @@ class PashubClient: if r.status_code == 401: raise UnauthorizedError("Token expired or invalid") + r.raise_for_status() + data: Dict[str, Any] = r.json() return RdSapSummary( pre_sap_rating=data.get("preSapRating"),