]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci: improve GH actions error handling
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 7 Dec 2020 09:42:30 +0000 (10:42 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 8 Dec 2020 10:32:26 +0000 (11:32 +0100)
ci/gh_actions.py

index 849ffff4fa90fa96799134a6e031b0b9194c1e0c..c452c69bb37e93674d96f7dac41e3b25f690f3bb 100755 (executable)
@@ -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?")