Skip to content

Commit

Permalink
fix: Raise ServerApiError in _missing_chunk() to trigger retries
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamb committed Aug 30, 2024
1 parent 11be962 commit 4daed7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flat-manager-client
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ async def _missing_chunk(session, build_url, chunk, headers):

resp = await session.get(build_url + "/missing_objects", data=data, headers=headers)
async with resp:
if resp.status >= 500:
raise ServerApiError(resp, await resp.text())
if resp.status != 200:
raise ApiError(resp, await resp.text())

Expand Down

0 comments on commit 4daed7b

Please sign in to comment.