2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

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

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)