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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

crybaby-0.0.6-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crybaby-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6313189c3784cd83353ab9383059c0eeea632d71e37b840fa4282c074249be31
MD5 6a2a976bd3c95601fe4e53fddc59fc8a
BLAKE2b-256 a87e0a678ee327c7c2eb1d95b17135012d4daec2d205d1680046c628972e51b2

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