diff --git a/plugins/python/sudo_python_module.c b/plugins/python/sudo_python_module.c index 456695af5..e33814720 100644 --- a/plugins/python/sudo_python_module.c +++ b/plugins/python/sudo_python_module.c @@ -171,6 +171,7 @@ python_sudo_options_as_dict(PyObject *py_self, PyObject *py_args) if (py_value == NULL) { // skip values without a key Py_CLEAR(py_config); Py_CLEAR(py_splitted); + PyErr_Clear(); continue; }