Skip to content

Commit

Permalink
handle list of None owners
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek1weiss committed Aug 4, 2024
1 parent 2435e52 commit 5ab7628
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 5ab7628

Please sign in to comment.