diff options
author | Tyler Kennedy | 2022-11-26 12:04:04 -0500 |
---|---|---|
committer | GitHub | 2022-11-26 10:04:04 -0700 |
commit | c7588583927e004e10599912f6d7b76413d52730 (patch) | |
tree | 6c6ac1d2a3cc52c5b1e170db3ab78f2fab31022d /core | |
parent | d60ba9a0515aed0b8235a7738a5fecd8fd78f859 (diff) | |
download | takahe-c7588583927e004e10599912f6d7b76413d52730.tar.gz takahe-c7588583927e004e10599912f6d7b76413d52730.tar.bz2 takahe-c7588583927e004e10599912f6d7b76413d52730.zip |
Simplified settings
Migrated settings to typed pydantic settings
Diffstat (limited to 'core')
-rw-r--r-- | core/exceptions.py | 4 |
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) |