From d6d7dde653ceb9409e8cd421274e02059d6027d3 Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Sat, 6 Jan 2018 18:54:55 +0100 Subject: [PATCH] Add error output if python evaluation failed --- src/PYTHON/python_impl.cpp | 1 + 1 file changed, 1 insertion(+) 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"); }