Skip to content

Commit 9046498

Browse files
committed
using PyDict_GetItemWithError
1 parent d9daa53 commit 9046498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arraykit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ AK_ArrayDeepCopy(PyArrayObject *array, PyObject *memo)
156156
if (!id) {
157157
return NULL;
158158
}
159-
PyObject *found = PyDict_GetItem(memo, id);
159+
PyObject *found = PyDict_GetItemWithError(memo, id);
160160
if (found) { // found will be NULL if not in dict
161161
Py_INCREF(found); // got a borrowed ref, increment first
162162
Py_DECREF(id);

0 commit comments

Comments
 (0)