Skip to content
Snippets Groups Projects
Commit 3dd357a4 authored by payno's avatar payno
Browse files

[hdf5file] check if file exists prior to iterate opening on it

parent dab8b6bb
No related branches found
No related tags found
No related merge requests found
Pipeline #43127 failed
......@@ -197,6 +197,11 @@ def retry_get_data(timeout=None):
def decorator(method):
def wrapper(url, *args, **kw):
if not os.path.exists(url.file_path()):
raise OSError(
"Unable to open file: {}. Does not exist."
"".format(url.file_path())
)
os.environ["HDF5_USE_FILE_LOCKING"] = "FALSE"
t0 = time.time()
while True:
......
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