From ded8cf1e46ba3647c1d5bb54ffe72492d82702a1 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 14 Jul 2026 13:43:27 +0000 Subject: [PATCH] =?UTF-8?q?Raise=20loudly=20when=20RdSAP=20Summary=20fetch?= =?UTF-8?q?=20returns=20an=20HTTP=20error=20=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- backend/pashub_fetcher/pashub_client.py | 2 ++ 1 file changed, 2 insertions(+) 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"),