diff --git a/pyEvalData/io/source.py b/pyEvalData/io/source.py index fec7933..34de9d3 100644 --- a/pyEvalData/io/source.py +++ b/pyEvalData/io/source.py @@ -547,7 +547,7 @@ def save_all_scans_to_nexus(self): try: _ = nxs_file[entry_name] scan_in_nexus = True - except KeyError: + except (KeyError, nxs.NeXusError): scan_in_nexus = False if (not scan_in_nexus) or (scan.number >= last_scan_in_nexus) \