mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
If no result was available, use Py_None.
This commit is contained in:
parent
fd94fba3c7
commit
7316f372d1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user