From 011504a2044f3e4d4d8688dcf74dc1820cacf26f Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Wed, 28 Aug 2024 14:59:35 +0100 Subject: [PATCH] fix: Raise ServerApiError in _missing_chunk() to trigger retries --- flat-manager-client | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flat-manager-client b/flat-manager-client index 530cfe4..628d775 100755 --- a/flat-manager-client +++ b/flat-manager-client @@ -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())