forked from M-Labs/artiq
1
0
Fork 0

browser: add a debug message for OSError on HDF5 open

This commit is contained in:
Robert Jördens 2016-06-16 11:50:09 +02:00
parent 9ad6287dd0
commit f5deafb267
1 changed files with 2 additions and 1 deletions

View File

@ -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)