Fixes for sentry docs (#2991)

This commit is contained in:
Markus Unterwaditzer 2018-11-07 21:04:10 +01:00 committed by GitHub
parent 513bbc06d0
commit 21704f22cb

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