File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11from abc import ABC , abstractmethod
22from threading import Lock
3+ import sys
34
45from sentry_sdk .utils import logger
56
@@ -71,9 +72,13 @@ def iter_default_integrations(with_auto_enabling_integrations):
7172 "sentry_sdk.integrations.modules.ModulesIntegration" ,
7273 "sentry_sdk.integrations.stdlib.StdlibIntegration" ,
7374 "sentry_sdk.integrations.threading.ThreadingIntegration" ,
74- "sentry_sdk.integrations.unraisablehook.UnraisablehookIntegration" ,
7575]
7676
77+ if sys .version_info >= (3 , 8 ):
78+ _DEFAULT_INTEGRATIONS .append (
79+ "sentry_sdk.integrations.unraisablehook.UnraisablehookIntegration"
80+ )
81+
7782_AUTO_ENABLING_INTEGRATIONS = [
7883 "sentry_sdk.integrations.aiohttp.AioHttpIntegration" ,
7984 "sentry_sdk.integrations.anthropic.AnthropicIntegration" ,
You can’t perform that action at this time.
0 commit comments