-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only import sentry if config is supplied , Also adds documentation to…
… builder
- Loading branch information
1 parent
a72cee4
commit b3f0004
Showing
2 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
# <[email protected]> | ||
import time | ||
|
||
import sentry_sdk | ||
from fastapi import FastAPI | ||
from fastapi.middleware.cors import CORSMiddleware | ||
from fastapi.staticfiles import StaticFiles | ||
|
@@ -48,6 +47,9 @@ | |
if ENABLE_POLYGON_STATISTICS_ENDPOINTS: | ||
from .stats import router as stats_router | ||
|
||
if SENTRY_DSN: | ||
import sentry_sdk | ||
|
||
# only use sentry if it is specified in config blocks | ||
if SENTRY_DSN: | ||
sentry_sdk.init( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters