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

Safe exception handling during type conversion #4492

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

jngrad
Copy link
Member

@jngrad jngrad commented Apr 7, 2022

Fix a regression introduced in #4387 that would randomly block the propagation of a TypeError when converting an unsupported Python type to a C++ variant. Please refer to cython/cython#4720 for the details. Restore the corresponding TypeError checks in the testsuite.

Cython functions need to be marked as `except *` when they both
raise Python exceptions and call C++ functions that may throw.
@jngrad jngrad added this to the Espresso 4.2 milestone Apr 7, 2022
@jngrad jngrad requested a review from reinaual April 7, 2022 15:15
@jngrad jngrad added the automerge Merge with kodiak label Apr 8, 2022
@kodiakhq kodiakhq bot merged commit a3cad69 into espressomd:python Apr 8, 2022
@jngrad jngrad deleted the fix_variant_regression branch April 8, 2022 13:17
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.

2 participants