Skip to content

Commit

Permalink
🎨 Formatting
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson committed Sep 16, 2024
1 parent 979430d commit 39abdfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bionty/base/_public_ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ def _validate_param(self, param_name: str, value: str | None) -> None:
valid_values = get_args(hint)

if valid_values and value not in valid_values:
quoted_values = [f"'{v}'" for v in valid_values]
raise InvalidParamError(
f"Invalid {param_name}: {value}. Must be one of: {', '.join(valid_values)}"
f"Invalid {param_name}: '{value}'. Must be one of: {', '.join(quoted_values)}"
)

def __repr__(self) -> str:
Expand Down

0 comments on commit 39abdfb

Please sign in to comment.