if not evaluation:
// the model failed
self.raiseAnError(RuntimeError,"The Model " + modelToExecute["Instance"].name
+ " identified by " + localIdentifier +" failed! The error is below:\n"+str(e))
else:
if self.parallelStrategy == 1:
After Change
import traceback
msg = io.StringIO()
traceback.print_exception(excType, excValue, excTrace, limit=10, file=msg)
msg = msg.getvalue().replace("\n", "\n ")
self.raiseAnError(RuntimeError, f"The Model "{modelToExecute["Instance"].name}" id "{localIdentifier}" "+
f"failed! Trace:\n{"*"*72}\n{msg}\n{"*"*72}")
else:
if self.parallelStrategy == 1: