fix: sentry dsn error (#2981)

This commit is contained in:
Nikhil 2023-12-05 13:42:16 +05:30 committed by Aaryan Khandelwal
parent 5fc6370231
commit a4b2ccf6b2

View File

@ -290,7 +290,7 @@ CELERY_IMPORTS = (
# Sentry Settings
# Enable Sentry Settings
if bool(os.environ.get("SENTRY_DSN", False)):
if bool(os.environ.get("SENTRY_DSN", False)) and os.environ.get("SENTRY_DSN").startswith("https://"):
sentry_sdk.init(
dsn=os.environ.get("SENTRY_DSN", ""),
integrations=[