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.8.tar.gz (69.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: crybaby-0.0.8.tar.gz
  • Upload date:
  • Size: 69.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.15

File hashes

Hashes for crybaby-0.0.8.tar.gz
Algorithm Hash digest
SHA256 5064666f2cb11c01f061a534fcfedc5195fee3c06adeacdb6d4ef6012fdee32e
MD5 829f24225b839c4371029ec8dc8b3098
BLAKE2b-256 e5ec939cc01bda6098c83f74182495988ad24ef3f279e3cbb2f613175a6b507e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for crybaby-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dd3cecd340bf529c712090dc842d326eaa2d19157828a0dfc8762283d3b8afb8
MD5 ab60ba3b8beb5599c225e07b7941c68b
BLAKE2b-256 83b47154c0f0e6c8b8d954e2e35d1082025afdc373cb3a9fcae41f55c41bea8e

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