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

Fix AttributeError in parsing_lib.prepare_cases() #2545

Merged
merged 2 commits into from
Feb 24, 2022
Merged

Conversation

abhidg
Copy link
Contributor

@abhidg abhidg commented Feb 24, 2022

  • parsing_lib: use import workaround
  • parsing_lib: fix error on get() call for non-dictionaries

@abhidg abhidg changed the title fix nonetype travel Fix AttributeError in parsing_lib.prepare_cases() Feb 24, 2022
.get("location", {}).get("country") raises AttributeError
when {"location": None} as None is not a dictionary.

Add deep_get() from export-data/transform.py to common_lib
for access to keys within nested dictionaries.
@abhidg abhidg merged commit 4dbe512 into main Feb 24, 2022
@abhidg abhidg deleted the fix-nonetype-travel branch February 24, 2022 14:47
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

Successfully merging this pull request may close these issues.

2 participants