Skip to content

Commit ca947be

Browse files
authored
Merge pull request #14144 from eric-wieser/fix-14142-spinoff
BUG: Remove stray print that causes a SystemError on python 3.7 due to an exception being in flight
2 parents 608329a + 75016bd commit ca947be

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

numpy/core/src/multiarray/descriptor.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,6 @@ _convert_from_array_descr(PyObject *obj, int align)
497497
else {
498498
ret = PyArray_DescrConverter(PyTuple_GET_ITEM(item, 1), &conv);
499499
}
500-
if (ret == NPY_FAIL) {
501-
PyObject_Print(PyTuple_GET_ITEM(item, 1), stderr, 0);
502-
}
503500
}
504501
else if (PyTuple_GET_SIZE(item) == 3) {
505502
newobj = PyTuple_GetSlice(item, 1, 3);
@@ -517,6 +514,7 @@ _convert_from_array_descr(PyObject *obj, int align)
517514
if (ret == NPY_FAIL) {
518515
goto fail;
519516
}
517+
520518
if ((PyDict_GetItem(fields, name) != NULL)
521519
|| (title
522520
&& PyBaseString_Check(title)

0 commit comments

Comments
 (0)