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:
|
try:
|
||||||
return h5py.File(info.filePath(), "r")
|
return h5py.File(info.filePath(), "r")
|
||||||
except OSError: # e.g. file being written (see #470)
|
except OSError: # e.g. file being written (see #470)
|
||||||
return
|
logger.debug("OSError when opening HDF5 file %s", info.filePath(),
|
||||||
|
exc_info=True)
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue