Skip to main content

Haiku error messages for Python

Project description

To have no errors Would be life without meaning No struggle, no joy
~ (Brian M. Porter)

haiku-errors

Just import haiku_errors to print a haiku whenever exception is not handled:

$ python -c "import haiku_errors; raise SystemError"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
SystemError

    Something has gone wrong.
    Format your disk, because this
    Error won't help you.
    ~ (Cheryl Walker)

One liner example without explicit raise:

$ python3 -c "import haiku_errors; f = lambda: f(); f()"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
LookupError

    The ten thousand things,
    How long do any persist?
    Netscape, too, has gone.
    ~ (Jason Willoughby)

To install run:

$ pip install haiku-errors

Project details


Download files

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

Files for haiku-errors, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size haiku_errors-0.3.0-py2.py3-none-any.whl (5.5 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size haiku-errors-0.3.0.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page