From 79f6a4023d3a8bb98e4c74a1f263f82b318e027a Mon Sep 17 00:00:00 2001 From: Alexey Volkov Date: Wed, 1 Jul 2020 23:00:00 -0700 Subject: [PATCH] fix(sdk): SDK - Components - Fixed the error message format string (#4130) --- sdk/python/kfp/components/_python_to_graph_component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/kfp/components/_python_to_graph_component.py b/sdk/python/kfp/components/_python_to_graph_component.py index e9f62bb73d8..ed361e28583 100644 --- a/sdk/python/kfp/components/_python_to_graph_component.py +++ b/sdk/python/kfp/components/_python_to_graph_component.py @@ -158,7 +158,7 @@ def task_construction_handler( #Checking the pipeline_func output object types for output_name, output_value in graph_output_value_map.items(): if not isinstance(output_value, TaskOutputArgument): - raise TypeError('Only TaskOutputArgument instances should be returned from graph component, but got "{output_name}" = "{}".'.format(output_name, str(output_value))) + raise TypeError('Only TaskOutputArgument instances should be returned from graph component, but got "{}" = "{}".'.format(output_name, str(output_value))) if not component_spec.outputs and graph_output_value_map: component_spec.outputs = [OutputSpec(name=output_name, type=output_value.task_output.type) for output_name, output_value in graph_output_value_map.items()]