Skip to content

Relaxed Resolver Raising Error #264

@schorlton-bugseq

Description

@schorlton-bugseq

Hi @c0fec0de, thanks for the fantastic library! Running v2.12.1 installed via conda/mamba and getting the following error:

top = Node("top", parent=None)
sub0 = Node("sub0", parent=top)
relaxedresolver = Resolver('name', relax=True)
relaxedresolver.get(top, "sub2") # Returns None (meets expectations)
relaxedresolver.get(top, "sub2/sub3")
*** AttributeError: 'NoneType' object has no attribute 'children'

I would have expected from the docs that this return None because of the relaxed resolution?

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions