From 65716b356f6efaeb83dcdd72d52696ac465e371c Mon Sep 17 00:00:00 2001 From: nanjiangwill Date: Thu, 26 Sep 2024 19:40:54 -0400 Subject: [PATCH] skip failed save --- commit0/harness/save.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commit0/harness/save.py b/commit0/harness/save.py index b3f431d..1a10c4f 100644 --- a/commit0/harness/save.py +++ b/commit0/harness/save.py @@ -75,7 +75,9 @@ def main( origin.push(refspec=f"{branch}:{branch}") logger.info(f"Pushed to {github_repo_url} on branch {branch}") except Exception as e: - raise Exception(f"Push {branch} to {owner}/{repo_name} fails.\n{str(e)}") + logger.error(f"Push {branch} to {owner}/{repo_name} fails.\n{str(e)}") + continue + # raise Exception(f"Push {branch} to {owner}/{repo_name} fails.\n{str(e)}") __all__ = []