From 3ac55bae0a018bd9d62bbb5b8b8d2326e2566f3c Mon Sep 17 00:00:00 2001 From: saltykox Date: Tue, 5 Apr 2022 13:58:01 +0300 Subject: [PATCH] updated check_input_parameters_type --- ote_sdk/ote_sdk/utils/argument_checks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ote_sdk/ote_sdk/utils/argument_checks.py b/ote_sdk/ote_sdk/utils/argument_checks.py index c0db4193b34..54f98261c32 100644 --- a/ote_sdk/ote_sdk/utils/argument_checks.py +++ b/ote_sdk/ote_sdk/utils/argument_checks.py @@ -231,7 +231,7 @@ def validate(*args, **kwargs): # Checking input parameters type for parameter_name in expected_types_map: parameter = input_parameters_values_map.get(parameter_name) - if parameter is None: + if parameter_name not in input_parameters_values_map: default_value = expected_types_map.get(parameter_name).default # pylint: disable=protected-access if default_value != inspect._empty: # type: ignore @@ -295,7 +295,7 @@ def check_that_all_characters_printable(parameter, parameter_name, allow_crlf=Fa ) if not all_characters_printable: raise ValueError( - fr"parameter {parameter_name} has not printable symbols: {parameter}" + rf"parameter {parameter_name} has not printable symbols: {parameter}" )