Skip to content

Commit 8bf4d1c

Browse files
committed
ref(boto3): Remove dupliocate _check_minimum_version()
1 parent 81fd35f commit 8bf4d1c

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎sentry_sdk/integrations/boto3/_client.py‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,24 @@
11
from functools import partial
22
from typing import TYPE_CHECKING
33

4-
from sentry_sdk.integrations import DidNotEnable, _check_minimum_version
4+
from sentry_sdk.integrations import DidNotEnable
55
from sentry_sdk.integrations.boto3._instrumentation import (
66
_sentry_after_call,
77
_sentry_after_call_error,
88
_sentry_before_sign,
99
_sentry_request_created,
1010
)
11-
from sentry_sdk.utils import parse_version
1211

1312
if TYPE_CHECKING:
1413
from typing import Any
1514

1615
try:
17-
from botocore import __version__ as BOTOCORE_VERSION
1816
from botocore.client import BaseClient
1917
except ImportError:
2018
raise DidNotEnable("botocore is not installed")
2119

2220

2321
def _patch_botocore_client() -> None:
24-
from sentry_sdk.integrations.boto3 import Boto3Integration
25-
26-
version = parse_version(BOTOCORE_VERSION)
27-
_check_minimum_version(Boto3Integration, version, "botocore")
28-
2922
orig_init = BaseClient.__init__
3023

3124
def sentry_patched_init(self: "BaseClient", *args: "Any", **kwargs: "Any") -> None:

0 commit comments

Comments
 (0)