Skip to content

Commit

Permalink
fix: add None case
Browse files Browse the repository at this point in the history
  • Loading branch information
HAEKADI committed Mar 8, 2024
1 parent 7dea10a commit a96facd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aio/aio-proxy/aio_proxy/response/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ def evaluate_field(field_value):


def string_list_to_string(string_list):
if string_list.strip("[]") == "nan" or string_list is None:
if string_list is None:
return None
elif string_list.strip("[]") == "nan":
return None
else:
elements = string_list.strip("[]").split(", ")
Expand Down

0 comments on commit a96facd

Please sign in to comment.