From 2106278846a4803e9c58118c63387cc206bf8535 Mon Sep 17 00:00:00 2001 From: The Beefy One Date: Tue, 18 Oct 2022 13:55:05 +0200 Subject: [PATCH] Add Exception to except --- qcodes/instrument/instrument_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcodes/instrument/instrument_base.py b/qcodes/instrument/instrument_base.py index 67d04576083..ba5c17e1a72 100644 --- a/qcodes/instrument/instrument_base.py +++ b/qcodes/instrument/instrument_base.py @@ -285,7 +285,7 @@ def snapshot_base( update_par = update try: snap["parameters"][name] = param.snapshot(update=update_par) - except: + except Exception: # really log this twice. Once verbose for the UI and once # at lower level with more info for file based loggers self.log.warning("Snapshot: Could not update parameter: %s", name)