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 6eaecce commit 65e59d8Copy full SHA for 65e59d8
graalpython/com.oracle.graal.python.cext/include/internal/pycore_pyerrors.h
@@ -20,7 +20,10 @@ extern void _PyErr_FiniTypes(PyInterpreterState *);
20
static inline PyObject* _PyErr_Occurred(PyThreadState *tstate)
21
{
22
assert(tstate != NULL);
23
- return tstate->curexc_type;
+ if (tstate->current_exception == NULL) {
24
+ return NULL;
25
+ }
26
+ return (PyObject *)Py_TYPE(tstate->current_exception);
27
}
28
29
static inline void _PyErr_ClearExcState(_PyErr_StackItem *exc_state)
0 commit comments