Skip to content

Commit df33e19

Browse files
author
Anonymous Committer
committed
chore: remove VersionDeprecatedError and related handling
1 parent 9dcbc13 commit df33e19

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

justoneapi/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
JustOneAPIError,
44
ProtocolError,
55
TransportError,
6-
VersionDeprecatedError,
76
)
87
from justoneapi._response import ApiResponse
98
from justoneapi._version import __version__
@@ -16,5 +15,4 @@
1615
"JustOneAPIError",
1716
"ProtocolError",
1817
"TransportError",
19-
"VersionDeprecatedError",
2018
]

justoneapi/_exceptions.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ class ProtocolError(JustOneAPIError):
1717
"""Raised when the server response cannot be interpreted."""
1818

1919

20-
class VersionDeprecatedError(JustOneAPIError):
21-
"""Raised when the server marks the SDK version as deprecated."""
22-
23-
2420
class BusinessError(JustOneAPIError):
2521
"""Raised when the API returns a non-zero business code and error raising is enabled."""
2622

justoneapi/_transport.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
BusinessError,
99
ProtocolError,
1010
TransportError,
11-
VersionDeprecatedError,
1211
)
1312
from justoneapi._response import ApiResponse
1413
from justoneapi._version import __version__
@@ -48,11 +47,6 @@ def get(self, path: str, params: dict[str, Any]) -> ApiResponse[Any]:
4847
if log_message:
4948
logger.warning(log_message)
5049

51-
if response.headers.get("JUSTONEAPI_PYTHON_SDK_VERSION_DEPRECATED"):
52-
raise VersionDeprecatedError(
53-
f"JustOneAPI Python SDK version {__version__} is deprecated. Please update to the latest version."
54-
)
55-
5650
try:
5751
payload = response.json()
5852
except ValueError as exc:

0 commit comments

Comments
 (0)