aveBHS

Python 3 AutoGoogler

Jan 5th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. import traceback
  2. import webbrowser
  3. import sys
  4.  
  5. def GoogleException():
  6.     exc_type, exc_obj, tb = sys.exc_info()
  7.     webbrowser.open('https://ru.stackoverflow.com/search?q=' + str(exc_obj) + " [python]", new=1)
  8. try:
  9.     i = 2/0
  10. except:
  11.     print(traceback.format_exc())
  12.     GoogleException()
Add Comment
Please, Sign In to add comment