feat: improve error handling in update process by warning on fetch failure

This commit is contained in:
Menno van Leeuwen 2025-03-14 17:31:46 +01:00
parent 484c421f22
commit f0f4ce507a
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -59,9 +59,10 @@ def check_git_repository():
# Fetch the latest changes # Fetch the latest changes
status, output = run_command(["git", "fetch"], shell=False) status, output = run_command(["git", "fetch"], shell=False)
if not status: 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) os.chdir(current_dir)
return False return True
# Check if remote branch exists # Check if remote branch exists
status, output = run_command( status, output = run_command(