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

extractAttributeFromDict returns an empty dict if an attribute is missing #28

Open
abursavich opened this issue Apr 26, 2021 · 0 comments

Comments

@abursavich
Copy link

SELECT returns an empty object when a field is missing because extractAttributeFromDict defaults the subtree to an empty dict instead of None.

fieldsComponents = attribute.split('.')
for component in fieldsComponents:
subtree = subtree.get(component, {})
if subtree is None:
return None

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