browser: add a debug message for OSError on HDF5 open

pull/605/head
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)