diff --git a/gso/__init__.py b/gso/__init__.py
index a3abcf1088634a771c09c2717950c95fb65faf2e..f1d1debdc8208a7368f90d811d586679367f9cad 100644
--- a/gso/__init__.py
+++ b/gso/__init__.py
@@ -47,8 +47,10 @@ def init_cli_app() -> typer.Typer:
 
 def init_sentry() -> None:
     """Only initialize Sentry if not in testing mode."""
-    if os.getenv("TESTING", "false").lower() == "false" and (oss_params := load_oss_params()):
-        sentry_sdk.init(dsn=oss_params.SENTRY.DSN, environment=oss_params.GENERAL.environment, traces_sample_rate=1.0)
+    if os.getenv("TESTING", "false").lower() == "false" and (sentry_params := load_oss_params().SENTRY):
+        sentry_sdk.init(
+            dsn=sentry_params.DSN, environment=load_oss_params().GENERAL.environment, traces_sample_rate=1.0
+        )
 
 
 init_sentry()