>>> import socket >>> issubclass(socket.error, Exception) True
https://docs.python.org/2/library/socket.html#socket.error