DAQ: fix bug where execute mount may not throw an error
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user