Skip to content

Commit 791fd14

Browse files
benjambbarthalion
authored andcommitted
fix: Raise ServerApiError in _missing_chunk() to trigger retries
1 parent 3e26aa5 commit 791fd14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flat-manager-client

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ async def _missing_chunk(session, build_url, chunk, headers):
247247

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

0 commit comments

Comments
 (0)