Updated to use socket.gaierror as OSError was deprecated
Merge pull request #5 from grr-hackers/offline-hostname-fix

Updated to use socket.gaierror as OSError was deprecated