Skip to content

Commit

Permalink
Hopefully fix circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
szokeasaurusrex committed Jan 22, 2024
1 parent 5b547d1 commit 7105849
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sentry_sdk/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from datetime import datetime, timedelta, timezone
from collections import defaultdict

from sentry_sdk.consts import EndpointType
import sentry_sdk.consts as consts
from sentry_sdk.utils import Dsn, logger, capture_internal_exceptions
from sentry_sdk.worker import BackgroundWorker
from sentry_sdk.envelope import Envelope, Item, PayloadRef
Expand Down Expand Up @@ -248,7 +248,7 @@ def _send_request(
self,
body, # type: bytes
headers, # type: Dict[str, str]
endpoint_type=EndpointType.ENVELOPE, # type: EndpointType
endpoint_type=consts.EndpointType.ENVELOPE, # type: consts.EndpointType
envelope=None, # type: Optional[Envelope]
):
# type: (...) -> None
Expand Down Expand Up @@ -422,7 +422,7 @@ def _send_envelope(
self._send_request(
body.getvalue(),
headers=headers,
endpoint_type=EndpointType.ENVELOPE,
endpoint_type=consts.EndpointType.ENVELOPE,
envelope=envelope,
)
return None
Expand Down

0 comments on commit 7105849

Please sign in to comment.