From 602b4fee84f03f717f302fe5ebbdb6434648a93b Mon Sep 17 00:00:00 2001 From: "Fabian P. Schmidt" Date: Sat, 30 Nov 2019 21:33:30 +0100 Subject: [PATCH] settings: Import only the init symbol from sentry_sdk (C0412) Fixing the clash between ungrouped-imports (C0412) pylint error and isort is the desired side effect of this commit. Signed-off-by: Fabian P. Schmidt --- network/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/settings.py b/network/settings.py index ffc1210..4c695f3 100644 --- a/network/settings.py +++ b/network/settings.py @@ -4,9 +4,9 @@ For local installation settings please copy .env-dist to .env and edit the appropriate settings in that file. You should not need to edit this file for local settings! """ -import sentry_sdk from decouple import Csv, config from dj_database_url import parse as db_url +from sentry_sdk import init as sentry_sdk_init from sentry_sdk.integrations.django import DjangoIntegration from unipath import Path @@ -238,7 +238,7 @@ LOGGING = { # Sentry SENTRY_ENABLED = config('SENTRY_ENABLED', default=False, cast=bool) if SENTRY_ENABLED: - sentry_sdk.init(dsn=config('SENTRY_DSN', default=''), integrations=[DjangoIntegration()]) + sentry_sdk_init(dsn=config('SENTRY_DSN', default=''), integrations=[DjangoIntegration()]) # Celery CELERY_ENABLE_UTC = USE_TZ