Skip to main content

No exceptions

Project description

Unexceptional

Tired of all those pesky uncaught Exceptions?

pip install unexceptional

In the REPL,
In the CLI,
In IPython & Jupyter,
No exceptions.

How do I escape this fresh hell?

pip uninstall unexceptional

What is even happening?

In order to achieve transparency to the user, this package is invoked at every interpreter startup by means of an included .pth file.

For the CPython interpreter, sys.excepthook is overridden with a no-op.

For IPython, a crime is committed:

Because the .pth file is invoked before IPython, a bastardized importlib.abc.MetaPathFinder is inserted into sys.meta_path to intercept future imports of IPython.core.interactiveshell. The InteractiveShell.showtraceback method is then overridden with the no-op after the module is executed.

Project details


Download files

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

Source Distribution

unexceptional-0.0.2.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

unexceptional-0.0.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page