Commit a16862a1 authored by Denis Štogl's avatar Denis Štogl

Error correction

parent b1a80860
......@@ -117,8 +117,8 @@ def create_subtype(parent, *args):
or namespace index, name
"""
nodeid, qname = _parse_add_args(*args[:2])
if len(args) > 3:
node_class = args[3]
if len(args) > 2:
node_class = args[2]
else:
node_class = ua.NodeClass.ObjectType
return node.Node(parent.server, _create_object(parent.server, parent.nodeid, nodeid, qname, None, node_class))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment