Skip to content

Commit

Permalink
merge: #150 from ginger/skip-empty-rows
Browse files Browse the repository at this point in the history
  • Loading branch information
alycejenni authored Jan 4, 2024
2 parents 715fc07 + 817fa83 commit 67adbf5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ def _extract_ext(subdict):
ext_extracted = [_extract_ext(x) for x in v]
elif isinstance(v, dict):
ext_extracted = [_extract_ext(v)]
elif v is None:
# skip if empty
ext_extracted = []
else:
ext_extracted = [_extract_ext({k: v})]
ext[extension_map[k]] = ext_extracted
Expand Down

0 comments on commit 67adbf5

Please sign in to comment.