Skip to content

Commit

Permalink
updated check_input_parameters_type
Browse files Browse the repository at this point in the history
  • Loading branch information
saltykox committed Apr 5, 2022
1 parent c99aebd commit 3ac55ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ote_sdk/ote_sdk/utils/argument_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"
)


Expand Down

0 comments on commit 3ac55ba

Please sign in to comment.