mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
Raise UnauthorizedError when RdSAP Summary fetch returns 401 🟩
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b596f32af1
commit
83d92010de
1 changed files with 2 additions and 0 deletions
|
|
@ -137,6 +137,8 @@ class PashubClient:
|
|||
url = f"{self.base}/jobs/{job_id}/rdSapSummary"
|
||||
|
||||
r = self.session.get(url)
|
||||
if r.status_code == 401:
|
||||
raise UnauthorizedError("Token expired or invalid")
|
||||
|
||||
data: Dict[str, Any] = r.json()
|
||||
return RdSapSummary(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue