summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/exceptions.py4
1 files changed, 2 insertions, 2 deletions
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)