1
0
Fork 0

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 <kerel@mailbox.org>
merge-requests/816/head
Fabian P. Schmidt 2019-11-30 21:33:30 +01:00 committed by Alfredos-Panagiotis Damkalis
parent 16d36b7bc6
commit 602b4fee84
1 changed files with 2 additions and 2 deletions

View File

@ -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