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 a4ced86 commit 7eab0d0Copy full SHA for 7eab0d0
1 file changed
Python/ceval.c
@@ -3090,7 +3090,10 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
3090
Python main loop. */
3091
PyErr_NormalizeException(
3092
&exc, &val, &tb);
3093
- PyException_SetTraceback(val, tb);
+ if (tb != NULL)
3094
+ PyException_SetTraceback(val, tb);
3095
+ else
3096
+ PyException_SetTraceback(val, Py_None);
3097
Py_INCREF(exc);
3098
tstate->exc_type = exc;
3099
Py_INCREF(val);
0 commit comments