mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -359,7 +359,7 @@ class _NNTPBase:
|
|||
if is_connected():
|
||||
try:
|
||||
self.quit()
|
||||
except (socket.error, EOFError):
|
||||
except (OSError, EOFError):
|
||||
pass
|
||||
finally:
|
||||
if is_connected():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue