Julien Danjou <julien at danjou.info> added the comment: PyErr_GetExcInfo() does not allow to specify a PyThreadState as argument. ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue40545> _______________________________________