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

Improve Error Message #375

Open
nh916 opened this issue Oct 2, 2023 · 1 comment
Open

Improve Error Message #375

nh916 opened this issue Oct 2, 2023 · 1 comment
Assignees

Comments

@nh916
Copy link
Contributor

nh916 commented Oct 2, 2023

Description

This error message is way too long and confusing and could use some improvement to make it concise and easier for the user for the message to report the issue and help them debug.

  File "C:\...\MIT\Python-SDK\src\cript\nodes\core.py", line 74, in __setattr__
    raise CRIPTAttributeModificationError(self.node_type, key, value)
cript.nodes.exceptions.CRIPTAttributeModificationError: Attempt to modify an attribute of a node (Process) that wasn't intended to be modified.
Here the non-existing attribute properties of Process was attempted to be modified.
Most likely this is due to a typo in the attribute that was intended to be modified i.e. `project.materials` instead of `project.material`.
To ensure compatibility with the underlying CRIPT data model we do not allow custom attributes.
C:\...\MIT\Python-SDK\src\cript\nodes\primary_nodes\process.p
@InnocentBug
Copy link
Collaborator

I am OO today and for the next 2 weeks.

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

2 participants