Skip to content

Commit 73cdc6d

Browse files
committed
ref(transport): Add missing transport instantiation in non-async context
GH-4582
1 parent 47416f4 commit 73cdc6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sentry_sdk/transport.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,8 @@ def make_transport(options: Dict[str, Any]) -> Optional[Transport]:
10291029
# No event loop running, fall back to sync transport
10301030
logger.warning("No event loop running, falling back to sync transport.")
10311031
transport_cls = Http2Transport if use_http2_transport else HttpTransport
1032+
else:
1033+
transport_cls = Http2Transport if use_http2_transport else HttpTransport
10321034

10331035
if isinstance(ref_transport, Transport):
10341036
return ref_transport

0 commit comments

Comments
 (0)