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

array: set exception message on failure #794

Merged
merged 1 commit into from
Apr 13, 2017

Conversation

jagerman
Copy link
Member

When attempting to get a raw array pointer we return nullptr if given a nullptr, which triggers an error_already_set(), but we haven't set an exception message, which results in Unknown internal error.

Callers that want explicit allowing of a nullptr here already handle it (by clearing the exception after the call).

Fixes #785.

When attempting to get a raw array pointer we return nullptr if given a
nullptr, which triggers an error_already_set(), but we haven't set an
exception message, which results in "Unknown internal error".

Callers that want explicit allowing of a nullptr here already handle it
(by clearing the exception after the call).
@jagerman
Copy link
Member Author

No one has commented, and this seems fairly harmless (and fixes a bug, if a somewhat obscure one), so I'll plan to merge this later today.

@aldanor
Copy link
Member

aldanor commented Apr 13, 2017

This was definitely overlooked, looks good to me

@jagerman jagerman merged commit 5749b50 into pybind:master Apr 13, 2017
@dean0x7d dean0x7d modified the milestone: v2.2 Aug 13, 2017
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