From f5deafb267918bd3a586dc0a33fd9a050d6e4a03 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Thu, 16 Jun 2016 11:50:09 +0200 Subject: [PATCH] browser: add a debug message for OSError on HDF5 open --- artiq/browser/files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/browser/files.py b/artiq/browser/files.py index 77caf6202..6a6407e1f 100644 --- a/artiq/browser/files.py +++ b/artiq/browser/files.py @@ -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)