Skip to content

Commit

Permalink
fixed bug in cli parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Mar 21, 2024
1 parent 87e87b3 commit 1c08711
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xnat_ingest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def __init__(
def convert(
self, value: ty.Any, param: click.Parameter | None, ctx: click.Context | None
):
if isinstance(value, self.type):
return value

Check warning on line 42 in xnat_ingest/utils.py

View check run for this annotation

Codecov / codecov/patch

xnat_ingest/utils.py#L42

Added line #L42 was not covered by tests
return self.type(*value)

@property
Expand Down

0 comments on commit 1c08711

Please sign in to comment.