From 1c08711c6024d797d18119d3a39096b815ce7db4 Mon Sep 17 00:00:00 2001 From: Tom Close Date: Thu, 21 Mar 2024 16:07:38 +1100 Subject: [PATCH] fixed bug in cli parsing --- xnat_ingest/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xnat_ingest/utils.py b/xnat_ingest/utils.py index 8179feb..e92f2cd 100644 --- a/xnat_ingest/utils.py +++ b/xnat_ingest/utils.py @@ -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 return self.type(*value) @property