Improve error message when passing wrong value to node
- AttributeError: ‘int’ object has no attribute ‘split’
#2733
Labels
Help Wanted 🙏
Contribution task, outside help would be appreciated!
Issue: Feature Request
New feature or improvement to existing feature
Milestone
Description
Is your feature request related to a problem? A clear and concise description of what the problem is: "I'm always frustrated when ..."
Node is suppose to take name of datasets (or parmaeters), when users put a value in node, they get an obscure error.
See full traceback:
Context
Why is this change important to you? How would you use it? How can it benefit other users?
The error is common for beginner. It would be great that if the error message can suggest the fix immediately.
Possible Implementation
(Optional) Suggest an idea for implementing the addition or change.
Raise a KedroError instead of AttributeError
Possible Alternatives
(Optional) Describe any alternative solutions or features you've considered.
Improve the logic how
dataset
is reference, insert validating logic. The error is now coming from pipeline/pipeline.py:33_transcode_split
, which doesn't seem to be the right place to raise error.The text was updated successfully, but these errors were encountered: