Skip to main content

Python exception handler that sends error messages to Slack.

Project description

crybaby

🥲 Python exception handler that sends error messages to Slack. 🚨

Package version Supported Python versions

Installation

pip install crybaby

Example

import crybaby


def unhandled_exception():
    raise Exception("Unhandled exception")


def handled_exception():
    try:
        raise Exception("Handled exception")
    except Exception as e:
        crybaby.catch(e)


if __name__ == "__main__":
    crybaby.setup(
        slack_token="xoxb-sample-slack-token", slack_channel_id="SLACKCHANNELID"
    )
    handled_exception()
    unhandled_exception()

Then

slack_example.png

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

crybaby-0.0.7.tar.gz (70.2 kB view details)

Uploaded Source

Built Distribution

crybaby-0.0.7-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file crybaby-0.0.7.tar.gz.

File metadata

  • Download URL: crybaby-0.0.7.tar.gz
  • Upload date:
  • Size: 70.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for crybaby-0.0.7.tar.gz
Algorithm Hash digest
SHA256 e86f908271f11550954f0eef853dea35fa38bc3d199dd94841bd1570f8b5abbe
MD5 1d40474acf87b6a4162f5fa7f4f5ca83
BLAKE2b-256 123d2385bcc753f1db9cb10ea76cba2f20a8afb1d61475e876df6fe1d20a844f

See more details on using hashes here.

File details

Details for the file crybaby-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: crybaby-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for crybaby-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f6d0aae2e7345af2dcdda67a58ef2448d9b4f6dab89a26fdfb03182b198c635b
MD5 a658c792cc088e2c271b73c580128e0c
BLAKE2b-256 a33e4b9ae95978d8952bb33a602ba460c006b32204d85cd09c913cd85606d330

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