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 b8b837370290c447d9e6ad6d778ec3412ae61174
parent 21bf7f95837c44854767c1cc5ae2c1f111033087
Author: Joris Vink <joris@coders.se>
Date:   Mon,  6 Feb 2017 16:54:38 +0100

when exiting clear any lingering python exceptions.

Diffstat:
src/python.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/python.c b/src/python.c @@ -138,8 +138,10 @@ kore_python_init(void) void kore_python_cleanup(void) { - if (Py_IsInitialized()) + if (Py_IsInitialized()) { + PyErr_Clear(); Py_Finalize(); + } } static void *