We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cf0918 commit eca9450Copy full SHA for eca9450
src/JSObjectProxy.cc
@@ -320,6 +320,13 @@ PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_iter_next(JSObjectProxy
320
321
PyObject *retVal = JSFunctionProxyMethodDefinitions::JSFunctionProxy_call(nextFunction, PyTuple_New(0), NULL);
322
Py_DECREF(nextFunction);
323
+ if (retVal == NULL) {
324
+ if (PyErr_Occurred()) {
325
+ PyErr_PrintEx(0);
326
+ }
327
+ PyErr_SetNone(PyExc_StopIteration);
328
+ return NULL;
329
330
331
// check if end of iteration
332
key = PyUnicode_FromString("done");
0 commit comments