Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/psrt_ghsa_bot/_sentry_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ def init_sentry() -> None:
"""Initialize the Sentry SDK with the DSN from the env"""
dsn = os.environ.get("SENTRY_DSN")
if not dsn:
print("No SENTRY_DSN set, skipping Sentry monitoring")
return

print("Initializing Sentry monitoring")
sentry_sdk.init(
dsn=dsn,
enable_tracing=False,
Expand Down