commit | 0832af6628ca5ac02d0226899725297dd508470b | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Tue Dec 18 23:10:48 2012 +0200 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Tue Dec 18 23:10:48 2012 +0200 |
tree | fc4e7d05d9c6f51eb97f3e8abbcab2b226330b94 | |
parent | ad28c7f9dad791567afa0624acfb3ba430851965 [diff] [blame] |
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