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 authored and barthalion committed Sep 2, 2024
1 parent 3e26aa5 commit 791fd14
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 791fd14

Please sign in to comment.