Skip to content

Commit

Permalink
MAINT: Remove unhelpful error replacements from import_array()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
seberg authored and charris committed Oct 21, 2023
1 parent 4649a05 commit a0f6999
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion numpy/core/code_generators/generate_numpy_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
c_api = PyObject_GetAttrString(numpy, "_ARRAY_API");
Py_DECREF(numpy);
if (c_api == NULL) {
PyErr_SetString(PyExc_AttributeError, "_ARRAY_API not found");
return -1;
}
Expand Down

0 comments on commit a0f6999

Please sign in to comment.