Fixes for sentry docs (#2991)

This commit is contained in:
Markus Unterwaditzer 2018-11-07 21:04:10 +01:00 committed by GitHub
parent 3bf80912cf
commit 339419117f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,19 +57,15 @@ The `YOUR_DSN_HERE` value needs to be replaced with the DSN value you get
from your Sentry installation.
After installation, failures leading to an Internal Server Error are automatically reported to
Sentry and from there you can receive error notifications. Sentry also supports
capturing custom exceptions::
import sentry_sdk
try:
throwing_function()
except Exception as e:
with sentry_sdk.push_scope() as scope:
sentry_sdk.capture_exception(e)
Sentry and from there you can receive error notifications.
See the `Python <https://docs.sentry.io/platforms/python/>`_ and `Flask-specific <https://docs.sentry.io/platforms/python/flask/>`_
Sentry SDK documentation for more detailed information.
Follow-up reads:
* Sentry also supports catching errors from your worker queue (RQ, Celery) in a
similar fashion. See the `Python SDK docs
<https://docs.sentry.io/platforms/python/>`_ for more information.
* `Getting started with Sentry <https://docs.sentry.io/quickstart/?platform=python>`_
* `Flask-specific documentation <https://docs.sentry.io/platforms/python/flask/>`_.
.. _error-handlers: