Skip to content
Snippets Groups Projects
Commit 421b2959 authored by dpohl's avatar dpohl
Browse files

BUG: test properly for file handle use

parent d3107634
No related branches found
No related tags found
2 merge requests!418Release v1.5.0,!403Parallel analysis and removal of most annoying warnings
......@@ -149,7 +149,7 @@ def get_latest_config_node_from_files(directory):
for file in files:
try: # Check if file can be opened in read only mode (as the scan_base does)
f = tb.open_file(file)
except ValueError: # file handle in use
except (ValueError, tb.exceptions.HDF5ExtError): # file handle in use
continue
try: # Check if file has a configuration_out node
f.root.configuration_out
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment