Skip to content

BUG: Don't leak internal exceptions when given an empty array #8614

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

Merged
merged 1 commit into from
Feb 18, 2017

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Feb 13, 2017

Fixes #6927 (and its dupe, #7454)

This was made worse in #8441, which changed the exception from IndexError, which is likely to not be swallowed by user code, to a StopIteration, which would cause silent failure if used inside a generator

@mhvk
Copy link
Contributor

mhvk commented Feb 13, 2017

Looks good (I would not have thought of the possibility of a function dealing with empty axis myself!)

@eric-wieser
Copy link
Member Author

Good to merge?

@mhvk
Copy link
Contributor

mhvk commented Feb 18, 2017

Yes, looks all OK, so merging. Thanks!

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.

3 participants