mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Issue #16717: get rid of socket.error, replace with OSError
This commit is contained in:
parent
ad28c7f9da
commit
0832af6628
39 changed files with 169 additions and 167 deletions
|
|
@ -135,8 +135,8 @@ def manage_socket(address):
|
|||
try:
|
||||
server = MyRPCServer(address, MyHandler)
|
||||
break
|
||||
except socket.error as err:
|
||||
print("IDLE Subprocess: socket error: " + err.args[1] +
|
||||
except OSError as err:
|
||||
print("IDLE Subprocess: OSError: " + err.args[1] +
|
||||
", retrying....", file=sys.__stderr__)
|
||||
socket_error = err
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue