Dec-29-2016, 08:45 AM
"No internet connection!!!" is just an example. It's not related to your script.
As I know urllib2 uses a socket module. A little digging tells me that socket module wouldn't print out IOError but socket.error exception.
As I know urllib2 uses a socket module. A little digging tells me that socket module wouldn't print out IOError but socket.error exception.