Skip to content

Commit

Permalink
check value first and then check if k is multivalued
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Nov 14, 2023
1 parent 48225df commit e2e7288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sssom/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def _get_prefix_map_and_metadata(


def _address_multivalued_slot(k: str, v: Any) -> Union[str, List[str]]:
if is_multivalued_slot(k) and v is not None and isinstance(v, str):
if isinstance(v, str) and is_multivalued_slot(k):
# IF k is multivalued, then v = List[values]
return [s.strip() for s in v.split("|")]
else:
Expand Down

0 comments on commit e2e7288

Please sign in to comment.