Skip to content

Commit

Permalink
client: Exit if backend doesn't support checks
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Jul 24, 2023
1 parent 57f488a commit 80216b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flat-manager-client
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ async def wait_for_checks(session, build_url, token):
print("Waiting for checks, if any...")
resp = await session.get(build_url + "/extended", headers={'Authorization': 'Bearer ' + token})
async with resp:
if resp.status == 404:
return

if resp.status != 200:
raise ApiError(resp, await resp.text())
build = await resp.json()
Expand Down

0 comments on commit 80216b0

Please sign in to comment.