I have the following python code;
try:
write_file(param="A")
write_file(param="B")
write_file(param="C")
except ValueError:
If the first write_file
raises exception, I want the code to continue to the next write_file
function. Currently, it runs to the end and stops.
I can't use the answers from a similar question python catch exception and continue try block That question uses different function whereas my question uses the same function but with different parameters each time.
I am using python v3.7