DAQ: fix bug where if target None we get an error

This commit is contained in:
2025-10-31 16:35:30 +01:00
parent e2d8c524d7
commit 7dcafe1288
+1 -1
View File
@@ -372,7 +372,7 @@ class AareDAQ:
self.__cfg.current_sample = None
if target is not None:
raise e
elif (target.location is not None
elif target is not None and (target.location is not None
and mounted_sample.puck.pos == target.location.pos
and mounted_sample.puck.segment == target.location.segment
and mounted_sample.pin == target.pin):