From 2d55b431d01765cfccebd9d4d863cfc1aa1883b6 Mon Sep 17 00:00:00 2001 From: Zhimu Guo <15zg11@queensu.ca> Date: Thu, 10 Mar 2022 19:00:04 -0500 Subject: [PATCH] Updated configurable.py to fix an error when using Keithley 2400 --- lightlab/equipment/abstract_drivers/configurable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightlab/equipment/abstract_drivers/configurable.py b/lightlab/equipment/abstract_drivers/configurable.py index a0df9247..38ec7f10 100644 --- a/lightlab/equipment/abstract_drivers/configurable.py +++ b/lightlab/equipment/abstract_drivers/configurable.py @@ -83,7 +83,7 @@ def set(self, cStr, val): if success != 1: # it doesn't exist yet try: dpath.util.new(self.dico, *cmd, separator=self.separator) - except ValueError: + except (ValueError, dpath.exceptions.PathNotFound): # We probably have an integer leaf where we would also like to have a directory parent = self.separator.join(cmd[0].split(self.separator)[:-1]) try: