Fix exception chaining for non-built-in exceptions by jepler · Pull Request #9266 · adafruit/circuitpython · GitHub
Skip to content

Fix exception chaining for non-built-in exceptions#9266

Merged
dhalbert merged 3 commits into
adafruit:9.0.xfrom
jepler:improve-exception-chaining
May 21, 2024
Merged

Fix exception chaining for non-built-in exceptions#9266
dhalbert merged 3 commits into
adafruit:9.0.xfrom
jepler:improve-exception-chaining

Conversation

@jepler

@jepler jepler commented May 21, 2024

Copy link
Copy Markdown

The cause was that setting the __cause__ property on an exception didn't set the built in exception object's cause property, so it's necessary to fetch the property from the actual object when needed.

@justmobilize

Copy link
Copy Markdown

@dhalbert

Copy link
Copy Markdown
Collaborator

@justmobilize so are you saying it works for you? Not sure :)

@justmobilize

Copy link
Copy Markdown

@dhalbert dhalbert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the quick fix!

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.

3 participants