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 hard crash when using wrong array types with put/get #56

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

joezuntz
Copy link
Owner

@joezuntz joezuntz commented Nov 7, 2022

Currently if you go through the python layer and put a 1D array of one type and then get the same array but with the wrong type then you get a c++ crash instead of a python exception.

This fixes that by adding the necessary try/catch in each of the relevant functions.

@marcpaterno marcpaterno merged commit fe9b518 into main Nov 7, 2022
@joezuntz joezuntz deleted the fix_wrong_array_get branch November 7, 2022 15:10
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