forked from M-Labs/artiq
browser: add a debug message for OSError on HDF5 open
This commit is contained in:
parent
9ad6287dd0
commit
f5deafb267
|
@ -17,7 +17,8 @@ def open_h5(info):
|
|||
try:
|
||||
return h5py.File(info.filePath(), "r")
|
||||
except OSError: # e.g. file being written (see #470)
|
||||
return
|
||||
logger.debug("OSError when opening HDF5 file %s", info.filePath(),
|
||||
exc_info=True)
|
||||
except:
|
||||
logger.warning("unable to read HDF5 file %s", info.filePath(),
|
||||
exc_info=True)
|
||||
|
|
Loading…
Reference in New Issue