Python HTTP Exception Handling
I'm running a program that downloads files from a web sit. I've introduced one exception handling urllib.error.HTTPError, but now I'm getting from time to time additional errors that I'm not sure how to capture: http.client.IncompleteRead. Do I just add the following to the code at the bottom? except http.client.IncompleteRead: How many exceptions do I have to add to make sure the program doesn't stop? And do I have to add them all in the same Except statement or in several Except statements. try: # Open a file object for the webpage f = urllib.request.urlopen(imageURL) # Open the local file