Issue #16717: get rid of socket.error, replace with OSError
diff --git a/Lib/platform.py b/Lib/platform.py
index 5629691..53182c6 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -882,7 +882,7 @@
         return default
     try:
         return socket.gethostname()
-    except socket.error:
+    except OSError:
         # Still not working...
         return default