mirror of
https://github.com/clearml/clearml
synced 2025-05-07 06:14:31 +00:00
Fix connect dict containing None default values, blocked the remote execution from passing string instead of None
This commit is contained in:
parent
9b1a18bf4d
commit
3b15da5fd6
@ -507,7 +507,7 @@ class _Arguments(object):
|
||||
# do not change this comparison because isinstance(v_type, type(None)) === False
|
||||
if v_type == type(None): # noqa: E721
|
||||
dictionary[k] = str(param) if param else None
|
||||
if v_type == str: # noqa: E721
|
||||
elif v_type == str: # noqa: E721
|
||||
dictionary[k] = v_type(param)
|
||||
else:
|
||||
dictionary[k] = None if param == '' else v_type(param)
|
||||
|
Loading…
Reference in New Issue
Block a user