Skip to content

Commit b22fdba

Browse files
Update packages/smithy-core/src/smithy_core/retries.py
Co-authored-by: Jordon Phillips <[email protected]>
1 parent 7f13497 commit b22fdba

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/smithy-core/src/smithy_core/retries.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,7 @@ def refresh_retry_token_for_retry(
234234
235235
:raises SmithyRetryException: If no further retry attempts are allowed.
236236
"""
237-
if error_info.error_type in [
238-
RetryErrorType.TRANSIENT,
239-
RetryErrorType.THROTTLING,
240-
RetryErrorType.SERVER_ERROR,
241-
]:
237+
if error_info.error_type is not RetryErrorType.CLIENT_ERROR:
242238
retry_count = token_to_renew.retry_count + 1
243239
if retry_count >= self.max_attempts:
244240
raise SmithyRetryException(

0 commit comments

Comments
 (0)