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

[bug] .get on ConfigNode with default None throws keyerror in struct mode #174

Closed
apsdehal opened this issue Mar 23, 2020 · 0 comments · Fixed by #178
Closed

[bug] .get on ConfigNode with default None throws keyerror in struct mode #174

apsdehal opened this issue Mar 23, 2020 · 0 comments · Fixed by #178
Assignees
Labels
bug Something isn't working

Comments

@apsdehal
Copy link

apsdehal commented Mar 23, 2020

Minimal example:

cfg = omegaconf.OmegaConf.create()
omegaconf.OmegaConf.set_struct(cfg, True)
a.get("d", None)
...
AttributeError: Accessing unknown key in a struct : d

Version: 2.0.0rc15

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
2 participants