Skip to content
Snippets Groups Projects
Commit d6d7dde6 authored by Richard Berger's avatar Richard Berger
Browse files

Add error output if python evaluation failed

parent 73c55ac4
No related branches found
No related tags found
No related merge requests found
...@@ -326,6 +326,7 @@ void PythonImpl::invoke_function(int ifunc, char *result) ...@@ -326,6 +326,7 @@ void PythonImpl::invoke_function(int ifunc, char *result)
pValue = PyObject_CallObject(pFunc,pArgs); pValue = PyObject_CallObject(pFunc,pArgs);
if (!pValue) { if (!pValue) {
PyErr_Print();
PyGILState_Release(gstate); PyGILState_Release(gstate);
error->one(FLERR,"Python function evaluation failed"); error->one(FLERR,"Python function evaluation failed");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment