Skip to content

Commit 7105849

Browse files
Hopefully fix circular import
1 parent 5b547d1 commit 7105849

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry_sdk/transport.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from datetime import datetime, timedelta, timezone
1111
from collections import defaultdict
1212

13-
from sentry_sdk.consts import EndpointType
13+
import sentry_sdk.consts as consts
1414
from sentry_sdk.utils import Dsn, logger, capture_internal_exceptions
1515
from sentry_sdk.worker import BackgroundWorker
1616
from sentry_sdk.envelope import Envelope, Item, PayloadRef
@@ -248,7 +248,7 @@ def _send_request(
248248
self,
249249
body, # type: bytes
250250
headers, # type: Dict[str, str]
251-
endpoint_type=EndpointType.ENVELOPE, # type: EndpointType
251+
endpoint_type=consts.EndpointType.ENVELOPE, # type: consts.EndpointType
252252
envelope=None, # type: Optional[Envelope]
253253
):
254254
# type: (...) -> None
@@ -422,7 +422,7 @@ def _send_envelope(
422422
self._send_request(
423423
body.getvalue(),
424424
headers=headers,
425-
endpoint_type=EndpointType.ENVELOPE,
425+
endpoint_type=consts.EndpointType.ENVELOPE,
426426
envelope=envelope,
427427
)
428428
return None

0 commit comments

Comments
 (0)