Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relaxed Resolver Raising Error #264

Open
schorlton-bugseq opened this issue Jul 29, 2024 · 0 comments
Open

Relaxed Resolver Raising Error #264

schorlton-bugseq opened this issue Jul 29, 2024 · 0 comments

Comments

@schorlton-bugseq
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant