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

MAINT: Remove unhelpful error replacements from import_array() #24958

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

seberg
Copy link
Member

@seberg seberg commented Oct 19, 2023

Replacing the original error is just not useful and actively unhelpful since the original array may have more information.

We could chain the error, but there seems little reason to do so.


Should backport this, although we would need to backport it very far back to be very helpful in practice.

Replacing the original error is just not useful and actively unhelpful
since the original array may have more information.

We could chain the error, but there seems little reason to do so.
@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Oct 19, 2023
@ngoldbaum
Copy link
Member

Agreed, this was extremely confusing to debug the other day.

@ngoldbaum ngoldbaum merged commit d885b0b into numpy:main Oct 20, 2023
59 checks passed
@seberg seberg deleted the remove-silly-error-setting branch October 20, 2023 08:04
@charris charris changed the title MAINT: Remove unhelpful error replacements from import_array() MAINT: Remove unhelpful error replacements from import_array() Oct 21, 2023
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Oct 21, 2023
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.

None yet

3 participants