DAQ: trying to tidy up aaredb error communication in raster scans
This commit is contained in:
+15
-1
@@ -1038,10 +1038,24 @@ class AareDAQ:
|
||||
# Let JFJochCommunicationError propagate
|
||||
result = self.__jfjoch.wait_till_done(60)
|
||||
|
||||
except JFJochCommunicationError:
|
||||
except JFJochCommunicationError as e:
|
||||
self._handle_operation_error(
|
||||
operation=DAQOperation.ROTATION,
|
||||
sample=self.sample,
|
||||
error=e,
|
||||
event_type=SampleEventType.COLLECTIONFAILED,
|
||||
additional_comment="JFJoch Communication Error",
|
||||
)
|
||||
raise
|
||||
except Exception as e:
|
||||
logger.error(f"Exception during rotation scan: {e}")
|
||||
self._handle_operation_error(
|
||||
operation=DAQOperation.ROTATION,
|
||||
sample=self.sample,
|
||||
error=e,
|
||||
event_type=SampleEventType.COLLECTIONFAILED,
|
||||
additional_comment=None,
|
||||
)
|
||||
raise
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user