diff --git a/scripts/cancel_github_workflows.py b/scripts/cancel_github_workflows.py index 8539f37c825e1..27bdba5950acc 100755 --- a/scripts/cancel_github_workflows.py +++ b/scripts/cancel_github_workflows.py @@ -152,8 +152,11 @@ def cancel_github_workflows( if head_commit["id"] != last_sha: last_sha = head_commit["id"] print_commit(head_commit) - cancel_run(repo, entry["id"]) - print(f"[Cancled] {entry['name']}") + try: + cancel_run(repo, entry["id"]) + print(f"[Cancled] {entry['name']}") + except ClickException as error: + print(f"[Cancled] {entry['name']} [Error: {error.message}]") print("")