From: Tomas Krizek Date: Mon, 7 Dec 2020 09:42:30 +0000 (+0100) Subject: ci: improve GH actions error handling X-Git-Tag: v5.2.1~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71d93e64e07814621e0f7f14b074ef0ca65eaade;p=thirdparty%2Fknot-resolver.git ci: improve GH actions error handling --- diff --git a/ci/gh_actions.py b/ci/gh_actions.py index 849ffff4f..c452c69bb 100755 --- a/ci/gh_actions.py +++ b/ci/gh_actions.py @@ -32,8 +32,9 @@ while time.time() < end_time: conclusion = run['conclusion'] html_url = run['html_url'] commit_sha = run['head_sha'] - except KeyError: - pass + except (KeyError, IndexError): + time.sleep(POLL_DELAY) + continue if commit_sha != sys.argv[2]: exit("Fetched invalid GH Action: commit mismatch. Re-run or push again?")