Skip to content
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Alessandra Romero <24320222+alexgromero@users.noreply.github.com>
  • Loading branch information
SamRemis and alexgromero authored Nov 19, 2025
commit 22ae90aebe02a5c9d35f55143b7468679c892107
2 changes: 1 addition & 1 deletion packages/smithy-core/src/smithy_core/retries.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def acquire(self, *, error: Exception) -> int:
Otherwise, return the amount of capacity successfully allocated.
"""

is_timeout = getattr(error, "is_timeout_error", False)
is_timeout = isinstance(error, retries_interface.ErrorRetryInfo) and error.is_timeout_error
capacity_amount = self.TIMEOUT_RETRY_COST if is_timeout else self.RETRY_COST

with self._lock:
Expand Down
Loading