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

Clearer Error when KeyError #157

Open
bashirmindee opened this issue Aug 17, 2023 · 1 comment
Open

Clearer Error when KeyError #157

bashirmindee opened this issue Aug 17, 2023 · 1 comment

Comments

@bashirmindee
Copy link
Collaborator

Currently when accessing an index/key that doesn't exist in a given object or if an object is not indexable, the error message is not clear enough. it should mention which object it is referring too.
reproduce issue

from tawazi import xn, dag
@xn
def none(): return None
@dag
def pipe(): none()['a']
@bashirmindee
Copy link
Collaborator Author

The error should be clear enough even with multiple indices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant