Skip to content

Commit

Permalink
browser: add a debug message for OSError on HDF5 open
Browse files Browse the repository at this point in the history
jordens committed Jun 20, 2016
1 parent 9ad6287 commit f5deafb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artiq/browser/files.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit f5deafb

Please sign in to comment.