From 096e4ae1f741bf1b41e53a035b5dd8fee6ceba14 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Fri, 3 Jul 2026 16:23:10 +0000 Subject: [PATCH] =?UTF-8?q?Abri=20amend=5Fjob=20treats=20an=20unconfirmed?= =?UTF-8?q?=20amendment=20response=20as=20retriable=20=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- infrastructure/abri/abri_client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infrastructure/abri/abri_client.py b/infrastructure/abri/abri_client.py index 4cfe51d7e..8ebd3ac2e 100644 --- a/infrastructure/abri/abri_client.py +++ b/infrastructure/abri/abri_client.py @@ -133,6 +133,11 @@ class AbriClient: "AmendOptiAppt element missing from relay response" ) + if amended.get("success") != "Y": + raise AbriResponseParseError( + "AmendOptiAppt element did not confirm success" + ) + job_no = amended.get("job_no") appointment_date = amended.get("appointment_date") appointment_time = amended.get("appointment_time")