mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
Raise loudly when RdSAP Summary fetch returns an HTTP error 🟩
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
eff4f64426
commit
ded8cf1e46
1 changed files with 2 additions and 0 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue