We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f13497 commit b22fdbaCopy full SHA for b22fdba
packages/smithy-core/src/smithy_core/retries.py
@@ -234,11 +234,7 @@ def refresh_retry_token_for_retry(
234
235
:raises SmithyRetryException: If no further retry attempts are allowed.
236
"""
237
- if error_info.error_type in [
238
- RetryErrorType.TRANSIENT,
239
- RetryErrorType.THROTTLING,
240
- RetryErrorType.SERVER_ERROR,
241
- ]:
+ if error_info.error_type is not RetryErrorType.CLIENT_ERROR:
242
retry_count = token_to_renew.retry_count + 1
243
if retry_count >= self.max_attempts:
244
raise SmithyRetryException(
0 commit comments