summaryrefslogtreecommitdiff
path: root/Lib/webbrowser.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-19 14:33:35 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-19 14:33:35 +0200
commit4c3208fadf4fea67e916d8d8c7a04a28c4ad92f9 (patch)
tree5e55f539c25d4cf53bd55b4c873b12465b6382b0 /Lib/webbrowser.py
parente3011323dd351c11919da6e4c6acfaa9aadc8b71 (diff)
downloadcpython-4c3208fadf4fea67e916d8d8c7a04a28c4ad92f9.tar.gz
Issue #16719: Get rid of WindowsError. Use OSError instead
Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib/webbrowser.py')
-rw-r--r--Lib/webbrowser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index 691f7db175..f1a071b779 100644
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -534,7 +534,7 @@ if sys.platform[:3] == "win":
def open(self, url, new=0, autoraise=True):
try:
os.startfile(url)
- except WindowsError:
+ except OSError:
# [Error 22] No application is associated with the specified
# file for this operation: '<URL>'
return False