Skip to content

Commit 5efc3bb

Browse files
style: fix indentation in CheckpointError conditional
1 parent c78ca95 commit 5efc3bb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/aws_durable_execution_sdk_python/exceptions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,14 @@ def from_exception(cls, exception: Exception) -> CheckpointError:
160160
# 5xx, 429, and network errors are retriable (INVOCATION).
161161
status_code: int | None = (metadata and metadata.get("HTTPStatusCode")) or None
162162
if (
163-
status_code
164-
and BAD_REQUEST_ERROR <= status_code < SERVICE_ERROR
165-
and status_code != TOO_MANY_REQUESTS_ERROR
166-
and error
167-
and not (
163+
status_code
164+
and BAD_REQUEST_ERROR <= status_code < SERVICE_ERROR
165+
and status_code != TOO_MANY_REQUESTS_ERROR
166+
and error
167+
and not (
168168
(error.get("Code") or "") == "InvalidParameterValueException"
169169
and (error.get("Message") or "").startswith("Invalid Checkpoint Token")
170-
)
170+
)
171171
):
172172
error_category = CheckpointErrorCategory.EXECUTION
173173
return CheckpointError(str(exception), error_category, error, metadata)

0 commit comments

Comments
 (0)