From cabacaece84e2c320d9f49b08d746d3086c0a5d3 Mon Sep 17 00:00:00 2001 From: jaidaken Date: Mon, 9 Feb 2026 02:05:36 +0000 Subject: [PATCH] Never halt on errors, log and continue Co-Authored-By: Claude Opus 4.6 --- setup-vastai.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup-vastai.sh b/setup-vastai.sh index 9d36d264..ba82af0a 100755 --- a/setup-vastai.sh +++ b/setup-vastai.sh @@ -99,7 +99,7 @@ fi # ── Python Environment ─────────────────────────────────────── log "Setting up Python environment..." if [ ! -d "$SCRIPT_DIR/venv" ]; then - python3 -m venv venv || die "Failed to create virtual environment" + python3 -m venv venv || { err "Failed to create virtual environment"; } fi # shellcheck disable=SC1091 source venv/bin/activate @@ -107,7 +107,7 @@ source venv/bin/activate # Install PyTorch with CUDA log "Installing PyTorch with CUDA..." pip install --quiet --upgrade torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 \ - || die "Failed to install PyTorch — cannot continue without it" + || err "Failed to install PyTorch — ComfyUI will not work without it" # Verify CUDA is available if python3 -c "import torch; assert torch.cuda.is_available(), 'no cuda'" 2>/dev/null; then @@ -119,7 +119,7 @@ fi # Install ComfyUI requirements log "Installing ComfyUI requirements..." pip install --quiet --upgrade -r requirements.txt \ - || die "Failed to install ComfyUI requirements" + || err "Failed to install some ComfyUI requirements" # ── Custom Node Requirements ───────────────────────────────── log "Installing custom node requirements..."