mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Abri log_job treats a logged-job response missing its job number as retriable 🟩
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
c1c2a1947e
commit
c23c74be6b
1 changed files with 7 additions and 4 deletions
|
|
@ -56,10 +56,13 @@ class AbriClient:
|
|||
raise AbriResponseParseError(
|
||||
"Job_logged element missing from relay response"
|
||||
)
|
||||
return JobLogged(
|
||||
job_no=job_logged.attrib["job_no"],
|
||||
logged_info=job_logged.attrib["logged_info"],
|
||||
)
|
||||
job_no = job_logged.get("job_no")
|
||||
logged_info = job_logged.get("logged_info")
|
||||
if job_no is None or logged_info is None:
|
||||
raise AbriResponseParseError(
|
||||
"Job_logged element missing job_no or logged_info"
|
||||
)
|
||||
return JobLogged(job_no=job_no, logged_info=logged_info)
|
||||
|
||||
@staticmethod
|
||||
def _parse_rejection(root: ET.Element) -> AbriRequestRejected:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue