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")