From f7a17b48d748e1835bcf9df86fb7fb318bb020f8 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Tue, 25 Dec 2012 16:47:37 +0200 Subject: Replace IOError with OSError (#16715) --- Lib/nntplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/nntplib.py') diff --git a/Lib/nntplib.py b/Lib/nntplib.py index ffab2c20ed..01d4303f4d 100644 --- a/Lib/nntplib.py +++ b/Lib/nntplib.py @@ -947,7 +947,7 @@ class _NNTPBase: if auth: user = auth[0] password = auth[2] - except IOError: + except OSError: pass # Perform NNTP authentication if needed. if not user: -- cgit v1.2.1