diff --git a/sdks/python/pmxt/_hosted_errors.py b/sdks/python/pmxt/_hosted_errors.py index db8be016..325a7db0 100644 --- a/sdks/python/pmxt/_hosted_errors.py +++ b/sdks/python/pmxt/_hosted_errors.py @@ -33,9 +33,7 @@ def __init__(self, status: int | str, detail: str | None = None) -> None: self.status = status_value self.detail = detail_value retryable = ( - self.DEFAULT_RETRYABLE - if self.DEFAULT_RETRYABLE is not None - else status_value >= 500 + self.DEFAULT_RETRYABLE if self.DEFAULT_RETRYABLE is not None else status_value >= 500 ) super().__init__(detail_value, code=self.DEFAULT_CODE, retryable=retryable) @@ -148,8 +146,6 @@ def _matches_no_liquidity(detail: str) -> bool: (None, _matches_no_liquidity, NoLiquidity), ] -ERROR_PATTERN_TABLE = HOSTED_ERROR_PATTERNS - def raise_from_response(response: httpx.Response) -> None: """Raise the hosted trading exception matching an upstream HTTP response."""