diff --git a/devices/PCC.py b/devices/PCC.py index f1d471da3781611d649e11c7a1fe76ed55ab618a..7893073c1baa033ef1e5c9a1f85965ae127dc30b 100644 --- a/devices/PCC.py +++ b/devices/PCC.py @@ -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() diff --git a/devices/src/attribute_wrapper.py b/devices/src/attribute_wrapper.py index daa33200611757b8d2698b5fc858761f025227f4..c1b185038853b9b833e35dd3487ae6ad7c4b461a 100644 --- a/devices/src/attribute_wrapper.py +++ b/devices/src/attribute_wrapper.py @@ -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