Skip to content

Commit

Permalink
added log messages to raise_value_error_if_parameter_has_unexpected_type
Browse files Browse the repository at this point in the history
  • Loading branch information
saltykox committed Feb 28, 2022
1 parent eb83c34 commit 52fd656
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 @@ -27,10 +27,10 @@ def raise_value_error_if_parameter_has_unexpected_type(
if not isinstance(parameter, expected_type):
parameter_type = type(parameter)
raise ValueError(
f"Unexpected type of '{parameter_name}' parameter, expected: {expected_type}, value: {parameter}"
f"Unexpected type of '{parameter_name}' parameter, expected: {expected_type}, actual: {parameter_type}"
)
time_now = datetime.now()
print(f"!_! finished checking {parameter_name} with expected type {expected_type} at {time_now}")
print(f"!_! finished checking {parameter_name} with expected type {expected_type} value:{parameter} at {time_now}")


def check_nested_elements_type(iterable, parameter_name, expected_type):
Expand Down

0 comments on commit 52fd656

Please sign in to comment.