Skip to content
Snippets Groups Projects
Commit 1a845523 authored by Taya Snijder's avatar Taya Snijder
Browse files

added exception to read/write set failure in attribute_wrapper set_comm_client function

parent f6204563
No related branches found
No related tags found
1 merge request!52021 03 22 branched from master attribute wrapper
......@@ -130,7 +130,10 @@ class PCC(hardware_device):
# map the attributes to the OPC ua comm client
for i in self.attr_list():
i.set_comm_client(self.OPCua_client)
try:
i.set_comm_client(self.OPCua_client)
except:
pass
self.OPCua_client.start()
......
......@@ -138,6 +138,4 @@ class attribute_wrapper(attribute):
self.read_function = pass_func
self.write_function = pass_func
# raise Exception("Exception while setting comm_client read/write functions. using pass function instead. %s") from e
raise Exception("Exception while setting comm_client read/write functions. using pass function instead. %s") from e
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment