The error i get is
"Unable to get a value from a failure result: Function ‘SwapCalculationFunction’ threw an exception: Period ‘2011-03-22’ to ‘2017-01-18’ resulted in a disallowed stub with frequency ‘P6M’"

The error itself refers to a swap leg that does not have a StubConvention set. When there is no convention set, the convention defaults to “None”, which validates that the start/end dates form an exact 6 month schedule. Clearly in this case, the dates ‘2011-03-22’ to ‘2017-01-18’ do not form an exact 6 month schedule. To get the swap to price it will be necessary to add a stub convention.

On the point about continuing to price the good trades, I have just tested the latest code on the master branch, and it did what I expected it to, which is to catch the error for the bad trade but continue to price the good trades. Looking at the history of the file, it seems that behaviour is not new, therefore I’m surprised you are not seeing the good trades continue to price.

Just to check, that you are receiving an exception stack trace instead of getting back the Results object? ie. with your inputs, calculateRiskResults() is throwing an exception? If you do have an exception could you paste the stack trace?