Thanks to visit codestin.com Credit goes to github.com
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 e557da8 commit 0a239e9Copy full SHA for 0a239e9
1 file changed
Python/ceval.c
@@ -1837,6 +1837,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
1837
/* x is now the iterator, make the first next() call */
1838
retval = (*Py_TYPE(x)->tp_iternext)(x);
1839
if (!retval) {
1840
+ PyObject *et, *ev, *tb;
1841
/* iter may be exhausted */
1842
Py_CLEAR(x);
1843
if (PyErr_Occurred() &&
@@ -1845,7 +1846,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
1845
1846
break;
1847
}
1848
/* try to get return value from exception */
- PyObject *et, *ev, *tb;
1849
PyErr_Fetch(&et, &ev, &tb);
1850
Py_XDECREF(et);
1851
Py_XDECREF(tb);
0 commit comments