mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
do not grab the result if it was in a gatherop
This commit is contained in:
parent
8afaac9fde
commit
d371454dad
@ -542,7 +542,7 @@ python_coro_run(struct python_coro *coro)
|
||||
|
||||
item = _PyGen_Send((PyGenObject *)coro->obj, NULL);
|
||||
if (item == NULL) {
|
||||
if (PyErr_Occurred() &&
|
||||
if (coro->gatherop == NULL && PyErr_Occurred() &&
|
||||
PyErr_ExceptionMatches(PyExc_StopIteration)) {
|
||||
PyErr_Fetch(&type, &coro->result, &traceback);
|
||||
Py_DECREF(type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user