https://github.com/crflynn/excoverflow
Appends google/stackoverflow search links to unhandled exceptions in python.
https://github.com/crflynn/excoverflow
Last synced: 4 months ago
JSON representation
Appends google/stackoverflow search links to unhandled exceptions in python.
- Host: GitHub
- URL: https://github.com/crflynn/excoverflow
- Owner: crflynn
- License: mit
- Created: 2018-02-22T03:10:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:14:07.000Z (over 2 years ago)
- Last Synced: 2025-02-01T23:47:48.979Z (4 months ago)
- Language: Python
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
excoverflow
===========This package adds links to google and stackoverflow search results to the end
of uncaught exceptions in Python. It should work with either Python 2 or 3.To install:
.. code-block:: shell
pip install excoverflow
To use, simply import the package in any project file for which you want
internet results pages printed after the exception... code-block:: python
import excoverflow
Unhandled exception output will be appended with links to google and
stackoverflow search results for python, the exception type, and the
exception message; e.g... code-block:: shell
Traceback (most recent call last):
File "test.py", line 5, in
val = 5 / 0
ZeroDivisionError: division by zerohttps://www.google.com/search?q=python+ZeroDivisionError+division+by+zero
https://stackoverflow.com/search?q=%5Bpython%5D+%22ZeroDivisionError+division+by+zero%22Inspired by this reddit post
https://www.reddit.com/r/ProgrammerHumor/comments/7z6x65/the_button_we_all_needed/