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

Add clear error about incorrect grounded Python function implementation #414

Merged
merged 2 commits into from
Aug 29, 2023

Conversation

vsbogd
Copy link
Collaborator

@vsbogd vsbogd commented Aug 29, 2023

In case when Python grounded function defined with unwrap=False returns Python atom the code throws AttributeError in hyperonpy.cpp and final error is not very clear: (Error (*2 1) Exception caught: AttributeError: 'OperationObject' object has no attribute 'catom')
This is to fix this and return more clear error: (Error (*2 1) Grounded operation which is defined using unwrap=False should return atom instead of Python type)

@Necr0x0Der Necr0x0Der merged commit e9cd6e3 into trueagi-io:main Aug 29, 2023
@vsbogd vsbogd deleted the more-verbose-error branch August 29, 2023 21:37
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

Successfully merging this pull request may close these issues.

2 participants