Skip to main content

Notify exceptions on slack

Project description

[![Build Status](](

# Install

$ pip install exception-slacker

# Usage

## When ENV set

import os
import exception_slacker

os.environ['EXCEPTION_SLACKER_CHANNEL'] = "#notification-test"
os.environ['EXCEPTION_SLACKER_NAME'] = "Exception Notifier"

raise StandardError("ERROR")


## When ENV not set

import exception_slacker

raise StandardError("ERROR")

Error in sys.excepthook:
Traceback (most recent call last):
File "/path/to/", line 17, in notification
raise StandardError("exception_slacker is imported, but %s aren't found in ENV." % ','.join(__KEYS))
StandardError: exception_slacker is imported, but EXCEPTION_SLACKER_TOKEN,EXCEPTION_SLACKER_CHANNEL,EXCEPTION_SLACKER_NAME aren't found in ENV.

Original exception was:
Traceback (most recent call last):
File "", line 20, in <module>
raise StandardError("ERROR")
StandardError: ERROR

# Update PyPI

$ nosetests -vs
$ python register # if necessary
$ python sdist upload

# Contributing

- Fork the repository on Github
- Create a named feature branch (like add_component_x)
- Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github

# License


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for exception-slacker, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size exception-slacker-0.1.1.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page