File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
libs/garf_executors/garf_executors/entrypoints Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -298,6 +298,8 @@ def _identify_param_pair(
298298 if not identifier or identifier not in key :
299299 return None
300300 provided_identifier , * keys = key .split ('.' )
301+ if not keys :
302+ return None
301303 if len (keys ) > 1 :
302304 raise GarfParamsException (
303305 f'{ key } is invalid format,'
@@ -306,9 +308,10 @@ def _identify_param_pair(
306308 )
307309 provided_identifier = provided_identifier .replace ('--' , '' )
308310 if provided_identifier not in self .identifiers :
311+ supported_arguments = ', ' .join (self .identifiers )
309312 raise GarfParamsException (
310313 f'CLI argument { provided_identifier } is not supported'
311- f', supported arguments { ", " . join ( self . identifiers ) } '
314+ f', supported arguments { supported_arguments } '
312315 )
313316 if provided_identifier != identifier :
314317 return None
You can’t perform that action at this time.
0 commit comments