Updating from older Python notifiers
Get the most out of Airbrake’s features and stay up to date with the latest improvements by updating your project to the latest version of our Python error reporting library for Django and Flask.
Step 1: uninstall
pip uninstall airbrake
Step 2: remove references to the old notifier
Remove references to
airbrake like imports:
import airbrake logger = airbrake.getLogger(api_key=*****, project_id=123
Step 3: install new notifier
pip install -U pybrake
To configure pybrake you will need your Airbrake project’s
these are available from your project’s settings page.
import pybrake notifier = pybrake.Notifier(project_id=123, project_key='FIXME', environment='production')
Sending errors to Airbrake
try: raise ValueError('hello') except Exception as err: notifier.notify(err)