Created
February 9, 2016 08:25
-
-
Save zsrinivas/010689f232bb5d198b89 to your computer and use it in GitHub Desktop.
rarely used python exception handling pattern.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import webbrowser | |
try: | |
1 / 0 | |
except Exception as e: | |
webbrowser.open( | |
'http://stackoverflow.com/search?q=[python]+' + \ | |
'+'.join(e.args + (type(e).__name__,))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment