← All platforms

Python error tracking

A script you run once. A worker you leave running. The Sentry Python SDK sends their error reports to Telebugs on your server.

~/hoofnotes  python -m pip install sentry-sdk
Successfully installed sentry-sdk
~/hoofnotes  nvim check_notes.py
import sentry_sdk
sentry_sdk.init(
# Copy the complete Telebugs DSN, key and path included.
dsn="YOUR_TELEBUGS_DSN",
)
# Remove this test once it appears in Telebugs.
try:
raise RuntimeError("Hello from Hoof Notes")
except RuntimeError as error:
sentry_sdk.capture_exception(error)
finally:
sentry_sdk.flush(timeout=5)
~/hoofnotes  python check_notes.py

Space pauses or resumes. R replays. Escape shows the complete setup.

Hang on, I already use Sentry

Keep sentry-sdk and point it at your Telebugs DSN. Your integrations and reporting calls stay the same. You don’t need a Sentry account.

Does a small script really need a framework?

No. The SDK works with plain Python and reports uncaught exceptions. You can also capture an exception you’ve already handled and keep its backtrace.

What if Python is running my web app?

We support Django, Flask, and FastAPI. Their integrations connect web request errors to the same SDK and your Telebugs server.