forked from mirrors/kore
call PyErr_Clear() before PyImport_ReloadModule().
This commit is contained in:
parent
93ab52dcf5
commit
e89e644d10
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue