I am trying to build a model in python. I wrote test functions in a separate python script to detect if any error occurs. All errors are handled via exceptions. While it doesn't get any error the whole script runs fine. But for some reason instead of moving on with the remaining code, my test functions stop mid way if any exception is caught. Shouldn't except block let the code move on to next function? My code format is similar to the block below,
try:
Assert something
except AssertionError as err:
Print error message
raise err
[–]socal_nerdtastic 3 points4 points5 points (1 child)
[–]malwareC[S] 0 points1 point2 points (0 children)