raiseTypeError(f"namespace must be of type str or int, but is of type {type(namespace).__name__}")
self.streams.error_stream("Could not determine namespace index from namespace: %s: %s",namespace,e)
raiseException("Could not determine namespace index from namespace %s",namespace)frome
self.obj=self.client.get_objects_node()
self.obj=self.client.get_objects_node()
self.check_nodes()
self.check_nodes()
...
@@ -135,6 +132,9 @@ class OPCUAConnection(CommClient):
...
@@ -135,6 +132,9 @@ class OPCUAConnection(CommClient):
else:
else:
raiseException("OPC-ua mapping requires either a list of the path or dict with the path. Was given %s type containing: %s",type(annotation),annotation)
raiseException("OPC-ua mapping requires either a list of the path or dict with the path. Was given %s type containing: %s",type(annotation),annotation)
# prepend namespace index for each element if none is given