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.5-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crybaby-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9c6b8f286564dc0b3e7e02c5439e7b3e88781b6cb0bbedf8a5aa2a5df601b074
MD5 2613ec7f621cc4c1dc0836a0c670e49f
BLAKE2b-256 5ac2304d8cd4518c6a956e4d94beee6496606513b41adcd545b7604b42fce3e7

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