File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
graalpython/com.oracle.graal.python.cext/src Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -351,10 +351,13 @@ PyObject* _Py_BuildValue_SizeT(const char *format, ...) {
351
351
}
352
352
case 'S' :
353
353
case 'N' :
354
- if (ARG == NULL && !PyErr_Occurred ()) {
355
- /* If a NULL was passed because a call that should have constructed a value failed, that's OK,
356
- * and we pass the error on; but if no error occurred it's not clear that the caller knew what she was doing. */
357
- PyErr_SetString (PyExc_SystemError , "NULL object passed to Py_BuildValue" );
354
+ if (ARG == NULL ) {
355
+ if (!PyErr_Occurred ()) {
356
+ /* If a NULL was passed because a call that should have constructed a value failed, that's OK,
357
+ * and we pass the error on; but if no error occurred it's not clear that the caller knew what she was doing. */
358
+ PyErr_SetString (PyExc_SystemError , "NULL object passed to Py_BuildValue" );
359
+ }
360
+ return NULL ;
358
361
} else if (converter != NULL ) {
359
362
APPEND_VALUE (list , converter (ARG ));
360
363
converter = NULL ;
You can’t perform that action at this time.
0 commit comments