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 28, 2024
1 parent 99c4dec commit 011504a
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 @@ -226,6 +226,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 011504a

Please sign in to comment.