From 3b15da5fd60c0d579cea9fc9d592082868f106d0 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Thu, 10 Dec 2020 09:46:36 +0200 Subject: [PATCH] Fix connect dict containing None default values, blocked the remote execution from passing string instead of None --- trains/backend_interface/task/args.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trains/backend_interface/task/args.py b/trains/backend_interface/task/args.py index 9424a32a..cd8dabdb 100644 --- a/trains/backend_interface/task/args.py +++ b/trains/backend_interface/task/args.py @@ -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)