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.

Source Distribution

haiku-errors-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

haiku_errors-0.1.0-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file haiku-errors-0.1.0.tar.gz.

File metadata

File hashes

Hashes for haiku-errors-0.1.0.tar.gz
Algorithm Hash digest
SHA256 081a8041d6a957ff3797612122c65a1a6fdcb011cf55baf5d151a2691c979af9
MD5 298cc6682c237950b5c4b9aa1d596c11
BLAKE2b-256 77f54b1f3dd94818ee64e2afac53d176d77c22ed238f7951d17ba3ace5c8b734

See more details on using hashes here.

File details

Details for the file haiku_errors-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for haiku_errors-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 26b0eeb7edccf4adc67f3fa4daf8fe4f6b70ebff2b810eb308c1e3e66769ee7e
MD5 64894c03df3b62526ce0a894d43a4085
BLAKE2b-256 eb85ddef7d47975d48909d931174c17fe92abeb2e516f898170e331bd3824802

See more details on using hashes here.

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