From 7d562f8a9d0a465af20c0c9d7fa855057e62fdd3 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Sun, 3 Oct 2021 12:21:46 +0200
Subject: [PATCH] L2SS-412: Cleanup duplication of comments and logging.

---
 devices/clients/attribute_wrapper.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/devices/clients/attribute_wrapper.py b/devices/clients/attribute_wrapper.py
index ced157a1f..e55a66214 100644
--- a/devices/clients/attribute_wrapper.py
+++ b/devices/clients/attribute_wrapper.py
@@ -154,20 +154,15 @@ class attribute_wrapper(attribute):
         try:
             self.read_function, self.write_function = client.setup_attribute(self.comms_annotation, self)
         except Exception as e:
-
-            logger.error("Exception while setting {} attribute with annotation: '{}' {}".format(client.__class__.__name__, self.comms_annotation, e))
             raise Exception("Exception while setting %s attribute with annotation: '%s'", client.__class__.__name__, self.comms_annotation) from e
 
     async def async_set_comm_client(self, client):
         """
-        takes a communications client as input arguments This client should be of a class containing a "get_mapping" function
-        and return a read and write function that the wrapper will use to get/set data.
+          Asynchronous version of set_comm_client.
         """
         try:
             self.read_function, self.write_function = await client.setup_attribute(self.comms_annotation, self)
         except Exception as e:
-
-            logger.error("Exception while setting {} attribute with annotation: '{}' {}".format(client.__class__.__name__, self.comms_annotation, e))
             raise Exception("Exception while setting %s attribute with annotation: '%s'", client.__class__.__name__, self.comms_annotation) from e
 
     def set_pass_func(self):
-- 
GitLab