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

Fix escape hatch to make __getattr__ behavior more standard #1883

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

romain-intel
Copy link
Contributor

For returned exceptions, we now raise an AttributeError instead of a RuntimeError when an attribute is accessed. This allows things like getattr(obj, "foo", default) to work better.

For returned exceptions, we now raise an AttributeError instead of a
RuntimeError when an attribute is accessed. This allows things like
`getattr(obj, "foo", default)` to work better.
@romain-intel romain-intel merged commit 593249c into master Jun 12, 2024
26 checks passed
@romain-intel romain-intel deleted the fix/getattrescape branch June 12, 2024 09:45
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