Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal] - Add KedroPipelineError and provide better error message for invalid node/pipeline definition #2734

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions kedro/pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,8 @@ def _validate_transcoded_inputs_outputs(nodes: list[Node]) -> None:

invalid = set()
for dataset_name in all_inputs_outputs:
if not isinstance(dataset_name, str):
raise KedroPipelineError("A BETTER ERROR MESSAGE")
name = _strip_transcoding(dataset_name)
if name != dataset_name and name in all_inputs_outputs:
invalid.add(name)
Expand Down Expand Up @@ -924,3 +926,7 @@ class CircularDependencyError(Exception):
"""

pass


class KedroPipelineError(Exception):
"""Error occurred when loading pipeline and running pipeline."""