From 04043fbe987e37e3ef9885d0d2927ffb4b646ca8 Mon Sep 17 00:00:00 2001 From: Sonny Date: Mon, 29 Jun 2020 21:06:38 +0200 Subject: [PATCH] 0.2.3.9 -Ugh this should be fixed now --- src/newsreader/conf/production.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/newsreader/conf/production.py b/src/newsreader/conf/production.py index 21a8d0f..4c2c480 100644 --- a/src/newsreader/conf/production.py +++ b/src/newsreader/conf/production.py @@ -53,14 +53,12 @@ REGISTRATION_OPEN = False # Optionally use sentry integration try: from sentry_sdk import init as sentry_init - from sentry_sdk import integrations + from sentry_sdk.integrations.celery import CeleryIntegration + from sentry_sdk.integrations.django import DjangoIntegration sentry_init( dsn=os.environ.get("SENTRY_DSN"), - integrations=[ - integrations.django.DjangoIntegration(), - integration.celery.CeleryIntegration(), - ], + integrations=[DjangoIntegration(), CeleryIntegration()], send_default_pii=False, ) except ImportError: