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

OmegaConf.select() crashes when selecting from a None container #685

Closed
odelalleau opened this issue Apr 16, 2021 · 1 comment
Closed

OmegaConf.select() crashes when selecting from a None container #685

odelalleau opened this issue Apr 16, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@odelalleau
Copy link
Collaborator

Describe the bug

cfg = OmegaConf.create({"x": DictConfig(None)})
OmegaConf.select(cfg, "x.y")

triggers:

AttributeError: 'NoneType' object has no attribute 'get'

Expected behavior
OmegaConf.select(cfg, "x.y") should be None.

@odelalleau odelalleau added the bug Something isn't working label Apr 16, 2021
@odelalleau odelalleau mentioned this issue Apr 16, 2021
@omry
Copy link
Owner

omry commented Apr 16, 2021

Will fix this in #683. See my comment there for a related bug without OmegaConf.select.

@omry omry closed this as completed Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants