From dd002c1985782f330d59af2aedab87edd95923cc Mon Sep 17 00:00:00 2001 From: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com> Date: Fri, 16 Jan 2026 09:34:30 +0000 Subject: [PATCH] Fix run_command keywords --- github_scripts/get_git_sources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github_scripts/get_git_sources.py b/github_scripts/get_git_sources.py index af5966c..519c960 100644 --- a/github_scripts/get_git_sources.py +++ b/github_scripts/get_git_sources.py @@ -165,8 +165,8 @@ def sync_repo(repo_source: str, repo_ref: str, loc: Path) -> None: # Ignore errors - these are likely because the main branch already exists # Instead write them as warnings command = f"git -C {loc} fetch origin main:main" - result = run_command(command, check=False, rval=True) - if result.returncode: + result = run_command(command, check=False) + if result and result.returncode: print("Warning - fetching main from origin resulted in an error") print("This is likely due to the main branch already existing") print(f"Error message:\n\n{result.stderr}")