mirror of
https://github.com/flibusta-apps/fb2converter_server.git
synced 2025-12-06 15:05:37 +01:00
Make sentry optional
This commit is contained in:
@@ -18,9 +18,10 @@ import sentry_sdk
|
||||
from config import env_config
|
||||
|
||||
|
||||
sentry_sdk.init(
|
||||
env_config.SENTRY_DSN,
|
||||
)
|
||||
if env_config.SENTRY_DSN:
|
||||
sentry_sdk.init(
|
||||
env_config.SENTRY_DSN,
|
||||
)
|
||||
|
||||
|
||||
router = APIRouter(tags=["converter"])
|
||||
|
||||
Reference in New Issue
Block a user