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/webbrowser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/webbrowser.py') diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index f1a071b779..a59639bad9 100644 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -422,7 +422,7 @@ class Grail(BaseBrowser): # no good; attempt to clean it out, but don't fail: try: os.unlink(fn) - except IOError: + except OSError: pass else: return s -- cgit v1.2.1