Skip to content

Commit 2a40df9

Browse files
committed
safe import httpcore
1 parent 70e25c2 commit 2a40df9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry_sdk/transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
try:
2222
import httpcore
23-
except ImportError:
23+
except (ImportError, AttributeError):
2424
httpcore = None # type: ignore[assignment,unused-ignore]
2525

2626
try:

0 commit comments

Comments
 (0)