mongodb-labs / edda

A log visualizer for MongoDB - This Repository is NOT a supported MongoDB product
232 stars 28 forks source link

Handle webbrowser.open failures #35

Closed kchodorow closed 12 years ago

kchodorow commented 12 years ago

That call may fail so logl should handle that gracefully and let the user know what's happening.

samantharitter commented 12 years ago

I've surrounded this with a try-except, but I haven't been able to test it very well. It should exit more gracefully now though? I'm not sure how to test this short of uninstalling all browsers on my computer.

kchodorow commented 12 years ago

What you've got looks good except I'd like to be able to see why it failed, something like except webbrowser.Error as e and then print the error message (see http://docs.python.org/tutorial/errors.html#handling-exceptions).