Commit f21ca1ea authored by Sebastien Petitdemange's avatar Sebastien Petitdemange
Browse files

lima: raise an exeption in case of device goes to fault state

parent 25ffbdb7
......@@ -85,4 +85,6 @@ class LimaAcquisitionDevice(AcquisitionDevice):
"last_image_acquired":self.device.last_image_acquired,
"last_image_saved":self.device.last_image_saved,
})
if self.device.acq_status.lower() == 'fault':
raise RuntimeError("Device %s (%s) is in Fault state" % (self.device,self.device.user_detector_name))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment