DAQ: fix bug where execute mount may not throw an error

This commit is contained in:
2026-04-15 17:00:45 +02:00
parent 49e2788580
commit 689c4c5474
+2 -1
View File
@@ -605,7 +605,8 @@ class AareDAQ:
# curr_sample_is_manual = True
#if target is not None or not curr_sample_is_manual:
logger.debug(target)
self._execute_mount_and_prepare(target)
if not self._execute_mount_and_prepare(target):
raise MountingFailed("Failed to mount sample")
logger.info(f"Sample mounted: {target}")
except Exception as e:
self.__cfg.state_busy = False