Ticket #3613 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

PythonAlgorithms are not stopping when a C++ exception is thrown from an algorithm run through the simple interface

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: major Milestone: Iteration 30
Component: Mantid Keywords:
Cc: petersonpf@… Blocked By:
Blocking: Tester: Peter Parker

Description

If a PythonAlgorithm runs a C++ algorithm through the simple api and it throws an exception, the PythonAlgorithm continues on its merry way, even though it prints the error message from the exception.

Change History

comment:1 Changed 9 years ago by Martyn Gigg

  • Status changed from new to verify
  • Resolution set to fixed

In [14198]:

Ensure that exceptions will always be pass onto the caller correctly. Fixes #3613

comment:2 Changed 9 years ago by Peter Parker

  • Status changed from verify to verifying
  • Tester set to Peter Parker

comment:3 Changed 9 years ago by Peter Parker

  • Status changed from verifying to closed

Created three PythonAlgorithms that used GeneratePythonScript, MergeRuns and RenameWorkspace respectively. When errors were thrown in the child algorithms after incorrect inputs were fed to them, the parent PythonAlgorithm successfully stopped after printing the error to the log.

Passed.

comment:4 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 4460

Note: See TracTickets for help on using tickets.