Skip to content

gh-146102: Don't clear exception on success in odictobject.c#151347

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:odict
Open

gh-146102: Don't clear exception on success in odictobject.c#151347
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:odict

Conversation

@vstinner

@vstinner vstinner commented Jun 11, 2026

Copy link
Copy Markdown
Member

Calling PyErr_Clear() on success can mask a pending exception. Replace it with an assertion checking that no exception is set.

Calling PyErr_Clear() on success can mask a pending exception.
Replace it with an assertion checking that no exception is set.
@vstinner

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant