diff --git a/flat-manager-client b/flat-manager-client index 07b706f..c0f4eac 100755 --- a/flat-manager-client +++ b/flat-manager-client @@ -499,6 +499,8 @@ async def purge_build(session, build_url, token): print("Purging build %s" % (build_url)) resp = await session.post(build_url + "/purge", headers={'Authorization': 'Bearer ' + token}, json= {} ) async with resp: + if resp.status == 404: + return "build not found" if resp.status != 200: raise ApiError(resp, await resp.text()) return await resp.json()