diff --git a/DHParser/syntaxtree.py b/DHParser/syntaxtree.py index 5af393fe6c632c1206dc11846d59fc2432e7f0f7..bde50ce2342553f69fbb8625cab6630ee988ed32 100644 --- a/DHParser/syntaxtree.py +++ b/DHParser/syntaxtree.py @@ -610,7 +610,7 @@ class Node: # (collections.abc.Sized): Base class omitted for cython-compatibil txt.append(' line="%i" col="%i"' % line_col(line_breaks, node.pos)) if root and id(node) in root.error_nodes and not has_reserved_attrs: txt.append(' err="%s"' % ''.join(str(err).replace('"', r'\"') - for err in root.get_error(node))) + for err in root.get_errors(node))) if node.tag_name in empty_tags: assert not node.result, ("Node %s with content %s is not an empty element!" % (node.tag_name, str(node)))