From 8439d8d877304802a1c49401aa2410bfac2534fb Mon Sep 17 00:00:00 2001
From: thijs snijder <snijder@astron.nl>
Date: Wed, 21 Apr 2021 16:30:36 +0200
Subject: [PATCH] removed superfluous in attribute_wrapper write_function()

---
 devices/src/attribute_wrapper.py | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/devices/src/attribute_wrapper.py b/devices/src/attribute_wrapper.py
index 107632521..66dcd4bb3 100644
--- a/devices/src/attribute_wrapper.py
+++ b/devices/src/attribute_wrapper.py
@@ -66,8 +66,8 @@ class attribute_wrapper(attribute):
             def read_RW(device):
                 # print("read_RW {}, {}x{}, {}, {}".format(me.name, me.dim_x, me.dim_y, me.attr_type, me.value))
                 """
-				read_RW returns the value that was last written to the attribute
-				"""
+                read_RW returns the value that was last written to the attribute
+                """
                 try:
                     return device.value_dict[self]
                 except Exception as e:
@@ -78,13 +78,12 @@ class attribute_wrapper(attribute):
             @fault_on_error
             def write_RW(device, value):
                 """
-				_write_RW writes a value to this attribute
-				"""
-                try:
-                    self.write_function(value)
-                    device.value_dict[self] = value
-                except Exception as e:
-                    raise e
+                _write_RW writes a value to this attribute
+                """
+
+                self.write_function(value)
+                device.value_dict[self] = value
+
 
             self.fget = read_RW
             self.fset = write_RW
-- 
GitLab