From 4f889e2b9768018d763a16deece3fd6ab44aacad Mon Sep 17 00:00:00 2001 From: appel_c Date: Wed, 3 Sep 2025 10:35:44 +0200 Subject: [PATCH] w --- superxas_bec/devices/timepix/timepix.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index abce52a..cdbfe74 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -66,9 +66,10 @@ class AndStatus(StatusBase): for st in self.all_statuses: with st._lock: - if st.done and not st.success: - self.set_exception(st.exception()) - return + if not self.done: + if st.done and not st.success: + self.set_exception(st.exception()) + return if all(st.done for st in self.all_statuses) and all( st.success for st in self.all_statuses