From 47aafc9d7e89f7b87f37f8856d5e2ade6a51c5b2 Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Mon, 12 Jan 2026 17:37:59 +0100 Subject: [PATCH] fix: Handle channels shadowing --- sentry_sdk/integrations/threading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry_sdk/integrations/threading.py b/sentry_sdk/integrations/threading.py index 6311b935a0..1624bf1dcf 100644 --- a/sentry_sdk/integrations/threading.py +++ b/sentry_sdk/integrations/threading.py @@ -57,7 +57,7 @@ def setup_once() -> None: import channels # type: ignore[import-untyped] channels_version = channels.__version__ - except ImportError: + except (ImportError, AttributeError): django_version = None channels_version = None