Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Appends google/stackoverflow search links to unhandled exceptions

Project description

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:

pip install excoverflow

To use, simply import the package in any project file for which you want internet results pages printed after the exception.

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.

Traceback (most recent call last):
  File "test.py", line 5, in <module>
    val = 5 / 0
ZeroDivisionError: division by zero

https://www.google.com/search?q=python+ZeroDivisionError+division+by+zero
https://stackoverflow.com/search?q=%5Bpython%5D+%22ZeroDivisionError+division+by+zero%22

Inspired by this reddit post https://www.reddit.com/r/ProgrammerHumor/comments/7z6x65/the_button_we_all_needed/

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
excoverflow-0.1.0-py2.py3-none-any.whl (3.8 kB) Copy SHA256 hash SHA256 Wheel py2.py3
excoverflow-0.1.0.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page