From 53eb35cbb895a2bfa733f7d28ba64aec8a34f922 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 15 Jun 2016 16:54:06 +0200 Subject: [PATCH] browser: suppress icon warnings from inaccessible datasets, closes #470 --- artiq/browser/files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/browser/files.py b/artiq/browser/files.py index f3bf22051..77caf6202 100644 --- a/artiq/browser/files.py +++ b/artiq/browser/files.py @@ -16,6 +16,8 @@ def open_h5(info): return try: return h5py.File(info.filePath(), "r") + except OSError: # e.g. file being written (see #470) + return except: logger.warning("unable to read HDF5 file %s", info.filePath(), exc_info=True)