commit | 2606a6f197a49f04611cb5cb0d67404d1ab14481 | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Wed Dec 19 14:33:35 2012 +0200 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Wed Dec 19 14:33:35 2012 +0200 |
tree | 35c228625105050ec2f593e6b362ce9e2498c760 | |
parent | 8a045cb93bded97220422a957941bb68341429d1 [diff] [blame] |
Issue #16719: Get rid of WindowsError. Use OSError instead Patch by Serhiy Storchaka.
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index 691f7db..f1a071b 100644 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py
@@ -534,7 +534,7 @@ 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