diff --git a/src/PYTHON/python_impl.cpp b/src/PYTHON/python_impl.cpp index daa4952665..cd8e691782 100644 --- a/src/PYTHON/python_impl.cpp +++ b/src/PYTHON/python_impl.cpp @@ -326,6 +326,7 @@ void PythonImpl::invoke_function(int ifunc, char *result) pValue = PyObject_CallObject(pFunc,pArgs); if (!pValue) { + PyErr_Print(); PyGILState_Release(gstate); error->one(FLERR,"Python function evaluation failed"); }