From fed50b8486c86d837276c8d07c05370ea1df24df Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Wed, 5 Jun 2024 15:02:09 +0200 Subject: [PATCH] Do not go to FAULT if an attribute read/write fails --- README.md | 1 + attribute_wrapper/attribute_wrapper.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ed6a9d..44ed183 100644 --- a/README.md +++ b/README.md @@ -43,5 +43,6 @@ This project is licensed under the Apache License Version 2.0 ## Releases +- 0.3 - Do not go to FAULT if a read or write fails - 0.2 - Ensure requirements.txt dependencies are installed - 0.1 - Initial release from separating into own repository diff --git a/attribute_wrapper/attribute_wrapper.py b/attribute_wrapper/attribute_wrapper.py index 8dcb6d9..63bb4c6 100644 --- a/attribute_wrapper/attribute_wrapper.py +++ b/attribute_wrapper/attribute_wrapper.py @@ -102,7 +102,6 @@ class AttributeWrapper(attribute): # and the hardware does not necessarily return what we've written # (see L2SDP-725). - @fault_on_error() def write_func_wrapper(device, value): """write_func_wrapper writes a value to this attribute""" @@ -115,7 +114,6 @@ class AttributeWrapper(attribute): f"Could not write attribute {comms_annotation}" ) from e - @fault_on_error() def read_func_wrapper(device): """ read_func_wrapper reads the attribute value, stores it and returns it" -- GitLab