Skip to content

Commit

Permalink
fix(sdk): SDK - Components - Fixed the error message format string (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun committed Jul 2, 2020
1 parent 62c7433 commit 79f6a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/kfp/components/_python_to_graph_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down

0 comments on commit 79f6a40

Please sign in to comment.