browser: suppress icon warnings from inaccessible datasets, closes #470

This commit is contained in:
Robert Jördens 2016-06-15 16:54:06 +02:00
parent a8b211f891
commit 53eb35cbb8
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ def open_h5(info):
return return
try: try:
return h5py.File(info.filePath(), "r") return h5py.File(info.filePath(), "r")
except OSError: # e.g. file being written (see #470)
return
except: except:
logger.warning("unable to read HDF5 file %s", info.filePath(), logger.warning("unable to read HDF5 file %s", info.filePath(),
exc_info=True) exc_info=True)