From c00d257430f34ef628379b6ccedb886a1d5e0522 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Feb 2026 04:29:09 +0000 Subject: [PATCH] Improve error logging in Docker image cleanup Co-authored-by: bandrel <3598052+bandrel@users.noreply.github.com> --- tests/test_docker_script_install.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_docker_script_install.py b/tests/test_docker_script_install.py index 6d5040d..0d8132b 100644 --- a/tests/test_docker_script_install.py +++ b/tests/test_docker_script_install.py @@ -1,6 +1,7 @@ import os import shutil import subprocess +import sys import uuid from pathlib import Path @@ -46,9 +47,9 @@ def docker_image(): text=True, timeout=60, ) - except Exception: - # Don't fail the test if cleanup fails - pass + except Exception as e: + # Don't fail the test if cleanup fails, but log the issue + print(f"Warning: Failed to remove Docker image {image_tag}: {e}", file=sys.stderr) def _run_container(image_tag, command, timeout=180):