From f0f4ce507ace36b7342200053fc77e94b460da7d Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Fri, 14 Mar 2025 17:31:46 +0100 Subject: [PATCH] feat: improve error handling in update process by warning on fetch failure --- bin/actions/update.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/actions/update.py b/bin/actions/update.py index 6442ce7..67462b8 100755 --- a/bin/actions/update.py +++ b/bin/actions/update.py @@ -59,9 +59,10 @@ def check_git_repository(): # Fetch the latest changes status, output = run_command(["git", "fetch"], shell=False) if not status: - printfe("red", f"Failed to fetch changes from git repository: {output}") + printfe("yellow", f"Warning: Failed to fetch changes from git repository: {output}") + printfe("yellow", "Continuing update process without repository check...") os.chdir(current_dir) - return False + return True # Check if remote branch exists status, output = run_command(