diff --git a/devices/util/attribute_wrapper.py b/devices/util/attribute_wrapper.py index 73e892322fa24e48f478be1231f7c8c363c64598..9182da5161d9282304ffec64f2768a37c6541189 100644 --- a/devices/util/attribute_wrapper.py +++ b/devices/util/attribute_wrapper.py @@ -135,8 +135,6 @@ class attribute_wrapper(attribute): try: self.read_function, self.write_function = client.setup_attribute(self.comms_annotation, self) except Exception as e: - def pass_func(value=None): - pass logger.error("Exception while setting {} attribute with annotation: '{}'".format(client.__class__.__name__, self.comms_annotation)) raise Exception("Exception while setting %s attribute with annotation: '%s'", client.__class__.__name__, self.comms_annotation) from e