Skip to content

Commit a70d645

Browse files
committed
Fix: remove incorrect exception in 'PySequence_Fast'
1 parent c1a289e commit a70d645

File tree

1 file changed

+1
-5
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+1
-5
lines changed

graalpython/com.oracle.graal.python.cext/src/abstract.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,7 @@ PyObject * PySequence_Fast(PyObject *v, const char *m) {
331331
return v;
332332
}
333333

334-
PyObject* result = UPCALL_CEXT_O(_jls_PySequence_List, native_to_java(v));
335-
if (result == NULL) {
336-
PyErr_SetString(PyExc_TypeError, m);
337-
}
338-
return result;
334+
return UPCALL_CEXT_O(_jls_PySequence_List, native_to_java(v));
339335
}
340336

341337
UPCALL_ID(PyObject_GetItem);

0 commit comments

Comments
 (0)