8000 Merge pull request #24972 from charris/backport-24958 · numpy/numpy@9d6694e · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d6694e

Browse files
authored
Merge pull request #24972 from charris/backport-24958
MAINT: Remove unhelpful error replacements from ``import_array()``
2 parents aca4819 + a0f6999 commit 9d6694e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

numpy/core/code_generators/generate_numpy_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
c_api = PyObject_GetAttrString(numpy, "_ARRAY_API");
5656
Py_DECREF(numpy);
5757
if (c_api == NULL) {
58-
PyErr_SetString(PyExc_AttributeError, "_ARRAY_API not found");
5958
return -1;
6059
}
6160

0 commit comments

Comments
 (0)
0