Skip to content

Commit

Permalink
Plug a gap in scripts not emitting a finished signal.
Browse files Browse the repository at this point in the history
Refs #10400
  • Loading branch information
martyngigg committed Dec 18, 2014
1 parent 6344f65 commit 95acd74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/MantidPlot/src/PythonScript.cpp
Expand Up @@ -239,8 +239,10 @@ void PythonScript::emit_error()

// return early if nothing happened
if (!PyErr_Occurred())
{
emit finished(MSG_FINISHED);
return;

}
// get the error information out
PyObject *exception(NULL), *value(NULL), *traceback(NULL);
PyErr_Fetch(&exception, &value, &traceback);
Expand Down

0 comments on commit 95acd74

Please sign in to comment.