Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A python client for Exceptional (getexceptional.com)
Python
branch: master

This branch is 9 commits ahead, 5 commits behind DataDog:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/exceptional
.gitignore
README.md
UNLICENSE
setup.py

README.md

exceptional-python

exceptional-python is a python client for Exceptional, a service which tracks errors in your web apps.

It is adapted from pylons-exceptional by removing dependencies to pylons.

Usage

Send exception directly

exceptional = Exceptional('YOUR_API_KEY_HERE')
try:
  1/0
except Exception as e:
  exceptional.submit(e, os.environ)
  raise

or, use log handler

import logging
logger = logging.getLogger(__name__)
handler = ExceptionalLogHandler('YOUR_API_KEY_HERE')
handler.setLevel(logging.ERROR)
logger.addHandler(handler)

try:
  1/0
except:
  logger.error('oops!')
Something went wrong with that request. Please try again.