summaryrefslogtreecommitdiff
path: root/Lib/nntplib.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 23:10:48 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 23:10:48 +0200
commit0832af6628ca5ac02d0226899725297dd508470b (patch)
treefc4e7d05d9c6f51eb97f3e8abbcab2b226330b94 /Lib/nntplib.py
parentad28c7f9dad791567afa0624acfb3ba430851965 (diff)
downloadcpython-git-0832af6628ca5ac02d0226899725297dd508470b.tar.gz
Issue #16717: get rid of socket.error, replace with OSError
Diffstat (limited to 'Lib/nntplib.py')
-rw-r--r--Lib/nntplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/nntplib.py b/Lib/nntplib.py
index 2de6ebd1b5..ffab2c20ed 100644
--- a/Lib/nntplib.py
+++ b/Lib/nntplib.py
@@ -359,7 +359,7 @@ class _NNTPBase:
if is_connected():
try:
self.quit()
- except (socket.error, EOFError):
+ except (OSError, EOFError):
pass
finally:
if is_connected():