Message124951
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. |
|
Date |
User |
Action |
Args |
2010-12-31 04:24:05 | terry.reedy | set | recipients:
+ terry.reedy, loewis, scott_daniels, amaury.forgeotdarc |
2010-12-31 04:24:05 | terry.reedy | set | messageid: <1293769445.05.0.607008696287.issue6285@psf.upfronthosting.co.za> |
2010-12-31 04:24:01 | terry.reedy | link | issue6285 messages |
2010-12-31 04:24:01 | terry.reedy | create | |
|