Option to ignore undefined tags · Issue #86 · yaml/pyyaml · GitHub
Skip to content

Option to ignore undefined tags #86

Closed
@theseanything

Description

@theseanything

Would it be possible to have an option to ignore undefined tags instead of raising a yaml.constructor.ConstructorError?

Something like:

def construct_undefined(self, node):
    if ignore_undefined:
         return None
    raise ConstructorError(None, None,
            "could not determine a constructor for the tag %r" % node.tag,
            node.start_mark)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions