diff --git a/Python/errors.c b/Python/errors.c index 8d02b8e26221..89d956f97770 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -75,7 +75,7 @@ PyErr_SetString(PyObject *exception, const char *string) PyObject * PyErr_Occurred(void) { - PyThreadState *tstate = PyThreadState_Get(); + PyThreadState *tstate = PyThreadState_GET(); return tstate->curexc_type; }