Skip to content

Commit d885b0b

Browse files
authored
Merge pull request #24958 from seberg/remove-silly-error-setting
MAINT: Remove unhelpful error replacements from `import_array()`
2 parents acae28b + b2f0b23 commit d885b0b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

numpy/_core/code_generators/generate_numpy_api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,12 @@
5353
}
5454
5555
if (numpy == NULL) {
56-
PyErr_SetString(PyExc_ImportError,
57-
"_multiarray_umath failed to import");
5856
return -1;
5957
}
6058
6159
PyObject *c_api = PyObject_GetAttrString(numpy, "_ARRAY_API");
6260
Py_DECREF(numpy);
6361
if (c_api == NULL) {
64-
PyErr_SetString(PyExc_AttributeError, "_ARRAY_API not found");
6562
return -1;
6663
}
6764

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy