Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Airbrake for your Python application #415

Closed
Mentors4EDU opened this issue Jun 17, 2020 · 0 comments
Closed

Setup Airbrake for your Python application #415

Mentors4EDU opened this issue Jun 17, 2020 · 0 comments
Labels

Comments

@Mentors4EDU
Copy link
Contributor

Installation

Our Python error library (pybrake) requires Python 3.4+.

Python 2.7 users should follow the Python 2 instructions.

pip install -U pybrake

Configuration

(You can find your project ID and API key in your project's settings)

import pybrake


notifier = pybrake.Notifier(project_id=<Your project ID>,
                            project_key='<Your project API KEY>',
                            environment='production')

Send a test error

To test that you've installed Airbrake correctly, try triggering a test error.

try:
    raise ValueError('hello')
except Exception as err:
    notifier.notify(err)

For more information please visit our official GitHub repo.

@Lonero-Team Lonero-Team locked as resolved and limited conversation to collaborators Jun 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant