From 7806481563a1088e22cb05eb62a815380d120b3f Mon Sep 17 00:00:00 2001 From: Masuri Date: Tue, 21 Apr 2026 10:45:47 +0900 Subject: [PATCH] ref(transport): Remove redundant checks for dsn --- sentry_sdk/transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry_sdk/transport.py b/sentry_sdk/transport.py index c9fb596c44..1bdc7c6a7d 100644 --- a/sentry_sdk/transport.py +++ b/sentry_sdk/transport.py @@ -106,7 +106,7 @@ class Transport(ABC): def __init__(self: "Self", options: "Optional[Dict[str, Any]]" = None) -> None: self.options = options - if options and options["dsn"] is not None and options["dsn"]: + if options and options["dsn"]: self.parsed_dsn = Dsn(options["dsn"], options.get("org_id")) else: self.parsed_dsn = None