diff --git a/sentry_sdk/transport.py b/sentry_sdk/transport.py index 1b1842d03e..8798115898 100644 --- a/sentry_sdk/transport.py +++ b/sentry_sdk/transport.py @@ -720,6 +720,7 @@ def _request( try: import httpcore + import h2 # type: ignore # noqa: F401 except ImportError: # Sorry, no Http2Transport for you class Http2Transport(HttpTransport):