Errors and Exceptions – Python

Making the timeout error in urllib2 look a bit nicer. The error Sometimes when you’re trying to open a url and the connection is crap, it will fail to connect and Python will spit out a timeout error message…which looks a bit like this. Using try: and except: A nice way of removing this horrible […]