Skip to content

Commit

Permalink
only init sentry sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
knowsuchagency committed Oct 17, 2024
1 parent f8a0e24 commit 3fe135e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
from tenacity import retry, retry_if_exception_type


sentry_sdk.init(os.getenv("SENTRY_DSN"))
if sentry_dsn := os.getenv("SENTRY_DSN"):
sentry_sdk.init(sentry_dsn)

app = FastAPI()

Expand Down

0 comments on commit 3fe135e

Please sign in to comment.