Python exception handler that sends error messages to Slack.
Project description
crybaby
🥲 Python exception handler that sends error messages to Slack. 🚨
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
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5064666f2cb11c01f061a534fcfedc5195fee3c06adeacdb6d4ef6012fdee32e |
|
MD5 | 829f24225b839c4371029ec8dc8b3098 |
|
BLAKE2b-256 | e5ec939cc01bda6098c83f74182495988ad24ef3f279e3cbb2f613175a6b507e |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd3cecd340bf529c712090dc842d326eaa2d19157828a0dfc8762283d3b8afb8 |
|
MD5 | ab60ba3b8beb5599c225e07b7941c68b |
|
BLAKE2b-256 | 83b47154c0f0e6c8b8d954e2e35d1082025afdc373cb3a9fcae41f55c41bea8e |