From c7588583927e004e10599912f6d7b76413d52730 Mon Sep 17 00:00:00 2001 From: Tyler Kennedy Date: Sat, 26 Nov 2022 12:04:04 -0500 Subject: Simplified settings Migrated settings to typed pydantic settings--- core/exceptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/exceptions.py b/core/exceptions.py index f8c0c50..335b7d6 100644 --- a/core/exceptions.py +++ b/core/exceptions.py @@ -20,7 +20,7 @@ def capture_message(message: str): """ Sends the informational message to Sentry if it's configured """ - if settings.SENTRY_ENABLED: + if settings.SETUP.SENTRY_DSN: from sentry_sdk import capture_message capture_message(message) @@ -32,7 +32,7 @@ def capture_exception(exception: BaseException): """ Sends the exception to Sentry if it's configured """ - if settings.SENTRY_ENABLED: + if settings.SETUP.SENTRY_DSN: from sentry_sdk import capture_exception capture_exception(exception) -- cgit v1.2.3