diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index 0095535..2f59780 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -776,7 +776,14 @@ class Timepix(PSIDeviceBase, TimePixControl): status_writer = None if self.hdf.enable.get() == "Enable": st2 = CompareStatus(self.hdf.write_file, ACQUIRESTATUS.DONE) - st3 = ExceptionStatus(self.hdf.write_status, 0, operation="!=") + st3 = ExceptionStatus( + self.hdf.write_status, + 0, + operation="!=", + exception=RuntimeError( + "HDF5 write failed, please check with support if the IOC has sufficient permissions to write to disk." + ), + ) status_written_images = CompareStatus(self.hdf.num_captured, self._n_images) status_writer = st1 & st2 & status_written_images & st3