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 7316f372d149c046a8e06572c7bcd0fe592ea1a8
parent fd94fba3c79e65c798c8e67d786d0d084b566bea
Author: Joris Vink <joris@coders.se>
Date:   Thu,  4 Aug 2022 13:19:02 +0200

If no result was available, use Py_None.

Diffstat:
src/python.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/python.c b/src/python.c @@ -4529,6 +4529,11 @@ pygather_reap_coro(struct pygather_op *op, struct python_coro *reap) PyErr_Fetch(&type, &coro->coro->result, &traceback); Py_DECREF(type); Py_XDECREF(traceback); + } else { + if (coro->coro->result == NULL) { + coro->coro->result = Py_None; + Py_INCREF(Py_None); + } } result->obj = coro->coro->result;