Terry J. Reedy <tjre...@udel.edu> added the comment:

webbrowser appears to be designed to return True/False if it does/or not open a 
browser window (regardless of site response). (I opened #10799 for a doc 
addition.) I believe an exception would likely indicate a bug therein. So I 
only wrapped the Windows startfile call (and only catch WindowsError), which 
could fail with any bad entry, and not just one left over from a previous 
install.

This patch should make the behavior on Windows much like on other systems: 
display message and move on. I have (yet) not tested this (but may try to), but 
take Scott's and Amaury's claims that the message call is correct. I will 
commit in a week if there are no objections.

----------
assignee:  -> terry.reedy
keywords: +patch
stage:  -> commit review
type:  -> behavior
versions: +Python 2.7, Python 3.2
Added file: http://bugs.python.org/file20199/z6285.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6285>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to