Skip to content

Commit bb3993d

Browse files
chore: add comment explaining retry placement
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c863d31 commit bb3993d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cycode/cyclient/scan_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ def upload_to_presigned_post(
167167
raise SlowUploadConnectionError from e
168168
raise
169169

170+
# Ideally this retry would live in _execute (CycodeClientBase) so all callers benefit,
171+
# but that requires making the retry predicate configurable per-call — a larger refactor.
170172
@retry(
171173
retry=retry_if_exception(lambda e: isinstance(e, RequestHttpError) and e.status_code == 404),
172174
stop=stop_after_attempt(3),

0 commit comments

Comments
 (0)