ConnectionRefusedError exception is Python 3 only. Back to socket.error.