diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-18 23:10:48 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-18 23:10:48 +0200 |
commit | 0832af6628ca5ac02d0226899725297dd508470b (patch) | |
tree | fc4e7d05d9c6f51eb97f3e8abbcab2b226330b94 /Lib/nntplib.py | |
parent | ad28c7f9dad791567afa0624acfb3ba430851965 (diff) | |
download | cpython-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.py | 2 |
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(): |