Skip to content

Commit

Permalink
Merge pull request #1656 from elementary-data/ele-3492-handle-more-ed…
Browse files Browse the repository at this point in the history
…gecases-when-parsing-ownerstags

handle list of None owners
  • Loading branch information
ofek1weiss authored Aug 4, 2024
2 parents 0b408f7 + fa67e08 commit b0f5cdd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion elementary/utils/json_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ def unpack_and_flatten_and_dedup_list_of_strings(
if isinstance(list_maybe_jsoned, str):
ret = unpack_and_flatten_str_to_list(list_maybe_jsoned)
elif isinstance(list_maybe_jsoned, list):
ret = sum_lists([unpack_and_flatten_str_to_list(x) for x in list_maybe_jsoned])
ret = sum_lists(
[
unpack_and_flatten_str_to_list(x)
for x in list_maybe_jsoned
if isinstance(x, str)
]
)
return list(set(ret))


Expand Down

0 comments on commit b0f5cdd

Please sign in to comment.