Skip to content
Myr

Fixes for sentry docs (#2991)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Markus Unterwaditzer · committed by GitHub · parent 3bf8091 · Browse files · 1 file+8 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−12 removed

  • other:+8 added−12 removed

1 file+8 added−12 removed

modified:docs/errorhandling.rst+8 added-12 removed
55 unmodified lines
56The `YOUR_DSN_HERE` value needs to be replaced with the DSN value you get57from your Sentry installation.5859After installation, failures leading to an Internal Server Error are automatically reported to 60Sentry and from there you can receive error notifications. Sentry also supports 61capturing custom exceptions::62 63 import sentry_sdk64 65 try:66 throwing_function()67 except Exception as e:68 with sentry_sdk.push_scope() as scope:69 sentry_sdk.capture_exception(e)60Sentry and from there you can receive error notifications.6171See the `Python <https://docs.sentry.io/platforms/python/>`_ and `Flask-specific <https://docs.sentry.io/platforms/python/flask/>`_ 72Sentry SDK documentation for more detailed information.62Follow-up reads:6364* Sentry also supports catching errors from your worker queue (RQ, Celery) in a65 similar fashion. See the `Python SDK docs66 <https://docs.sentry.io/platforms/python/>`_ for more information.67* `Getting started with Sentry <https://docs.sentry.io/quickstart/?platform=python>`_68* `Flask-specific documentation <https://docs.sentry.io/platforms/python/flask/>`_.6970.. _error-handlers:7172Error handlers73--------------
141 unmodified lines