Commit a0bbb940 authored by Stefan Behnel's avatar Stefan Behnel

try to work around a Py_FatalError crash in latest Py3.6 apparently due to a...

try to work around a Py_FatalError crash in latest Py3.6 apparently due to a RuntimeWarning during garbage collection
parent a1849bc7
......@@ -1186,6 +1186,7 @@ static void __Pyx_Coroutine_check_and_dealloc(PyObject *self) {
PyObject_GC_UnTrack(self);
#if PY_VERSION_HEX >= 0x03030000 || defined(PyErr_WarnFormat)
PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname);
PyErr_Clear(); /* just in case, must not keep a live exception during GC */
#else
{PyObject *msg;
char *cmsg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment