Fix connect dict containing None default values, blocked the remote execution from passing string instead of None

This commit is contained in:
allegroai 2020-12-10 09:46:36 +02:00
parent 9b1a18bf4d
commit 3b15da5fd6

View File

@ -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)