kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit d371454dad11b6e9de53cb3747c1cf25b3bb6d9f
parent 8afaac9fde0ff91ed08831081cc41b5fc1732924
Author: Joris Vink <joris@coders.se>
Date:   Tue, 19 Mar 2019 13:58:00 +0100

do not grab the result if it was in a gatherop

Diffstat:
src/python.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/python.c b/src/python.c @@ -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);