commit e89e644d109d597e308d5c74db158219480d5470
parent 93ab52dcf5ed577bbed70166fc9053f47c3d993c
Author: Joris Vink <joris@coders.se>
Date: Wed, 22 Feb 2017 20:54:57 +0100
call PyErr_Clear() before PyImport_ReloadModule().
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/python.c b/src/python.c
@@ -213,6 +213,8 @@ python_module_reload(struct kore_module *module)
{
PyObject *handle;
+ PyErr_Clear();
+
if ((handle = PyImport_ReloadModule(module->handle)) == NULL) {
python_log_error("python_module_reload");
return;