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 c31df04 commit 365b693Copy full SHA for 365b693
1 file changed
Python/ceval.c
@@ -3026,9 +3026,13 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
3026
why = WHY_EXCEPTION;
3027
3028
/* Double-check exception status. */
3029
+#ifdef NDEBUG
3030
if (!PyErr_Occurred())
3031
PyErr_SetString(PyExc_SystemError,
3032
"error return without exception set");
3033
+#else
3034
+ assert(PyErr_Occurred());
3035
+#endif
3036
3037
/* Log traceback info. */
3038
PyTraceBack_Here(f);
0 commit comments