diff --git a/CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py b/CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py index 9881f1d0dd0b9105ff3674d2ca57285184f9333d..7c21b0c256a786fbe3e6a40c18c03626e5bd1b45 100644 --- a/CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py +++ b/CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py @@ -537,6 +537,10 @@ class HolographyDataset(): :return: the read dataset """ f = None + + if not os.path.exists(path): + raise FileNotFoundError(path) + try: f = h5py.File(path, "r")