Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Closing the loop on this one. The code I inherited was using:

except Exception as e:

That wasn't working because the exception I was getting was an IOException and it does not get caught with the above code and thus the pipeline terminates. The two options to resolve it are as follows...


This works as it will trap any exception of ANY type since nothing is explicitly specified. However, you may want to trap specific exceptions and log them differently...

from import IOException
except (IOException, Exception) as e:

This one augments the original code to explicitly look for the IOException. Thus, the error is caught and processing my continue without terminating the pipeline.