Skip to content

Commit

Permalink
consider NoneType
Browse files Browse the repository at this point in the history
  • Loading branch information
plbremer committed Dec 20, 2023
1 parent 83fa650 commit ebeae4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/oaklib/utilities/subsets/value_set_expander.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ def _generate_permissible_value(
) -> PermissibleValue:
definition = oi.definition(curie)
# \n can break some downstream tooling like LinkML's gen-pydantic (v1.6.6)
definition = definition.replace("\n", " ")
if definition is not None:
definition = definition.replace("\n", " ")
label = oi.label(curie)
pv_formula = enum_definition.pv_formula if enum_definition else None
if str(pv_formula) == "CURIE":
Expand Down

0 comments on commit ebeae4a

Please sign in to comment.