Skip to content

Commit

Permalink
SDK - Components - Fixed bug in loading input-less graph components (k…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun authored and Jeffwan committed Dec 9, 2020
1 parent 2762e11 commit 0eb3fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/kfp/components/_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def _resolve_graph_task(

graph = component_spec.implementation.graph

graph_input_arguments = {input.name: input.default for input in component_spec.inputs if input.default is not None}
graph_input_arguments = {input.name: input.default for input in component_spec.inputs or [] if input.default is not None}
graph_input_arguments.update(arguments)

outputs_of_tasks = {}
Expand Down

0 comments on commit 0eb3fa5

Please sign in to comment.