mirror of
https://github.com/python/cpython.git
synced 2026-01-29 10:42:17 +00:00
Make PyTraceBack_Here use the current thread, not the
frame's thread state. Fixes #1579370.
This commit is contained in:
parent
e471317a08
commit
601d03a5be
2 changed files with 4 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ newtracebackobject(PyTracebackObject *next, PyFrameObject *frame)
|
|||
int
|
||||
PyTraceBack_Here(PyFrameObject *frame)
|
||||
{
|
||||
PyThreadState *tstate = frame->f_tstate;
|
||||
PyThreadState *tstate = PyThreadState_GET();
|
||||
PyTracebackObject *oldtb = (PyTracebackObject *) tstate->curexc_traceback;
|
||||
PyTracebackObject *tb = newtracebackobject(oldtb, frame);
|
||||
if (tb == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue