File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2
2
#include "Python.h"
3
3
#include "pycore_atomic.h" // _Py_atomic_int
4
4
#include "pycore_ceval.h" // _PyEval_SignalReceived()
5
- #include "pycore_pyerrors.h" // _PyErr_Fetch ()
5
+ #include "pycore_pyerrors.h" // _PyErr_GetRaisedException ()
6
6
#include "pycore_pylifecycle.h" // _PyErr_Print()
7
7
#include "pycore_initconfig.h" // _PyStatus_OK()
8
8
#include "pycore_interp.h" // _Py_RunGC()
@@ -870,10 +870,9 @@ _Py_FinishPendingCalls(PyThreadState *tstate)
870
870
}
871
871
872
872
if (make_pending_calls (tstate -> interp ) < 0 ) {
873
- PyObject * exc , * val , * tb ;
874
- _PyErr_Fetch (tstate , & exc , & val , & tb );
873
+ PyObject * exc = _PyErr_GetRaisedException (tstate );
875
874
PyErr_BadInternalCall ();
876
- _PyErr_ChainExceptions (exc , val , tb );
875
+ _PyErr_ChainExceptions1 (exc );
877
876
_PyErr_Print (tstate );
878
877
}
879
878
}
You can’t perform that action at this time.
0 commit comments