CDSW Jobs are shown as "Success" when python code throws an Exception
We have several CDSW jobs set up where we call a python script with a main() function which is called via
if __name__ == "__main__":
main()
Our problem is that these jobs are erronously shown as "Success" even if the python code throws an Exception.
How can we set up our CDSW such that these jobs are correctly shown as "Failure"?

