From f6562ae59c3d71ecfd79dfef9cc4f25a5e0e61a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Wed, 12 Feb 2025 11:40:36 +0100 Subject: [PATCH] fixup! Download and verify cosign signatures --- dangerzone/container_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dangerzone/container_utils.py b/dangerzone/container_utils.py index 1d20a1c..98e745c 100644 --- a/dangerzone/container_utils.py +++ b/dangerzone/container_utils.py @@ -204,6 +204,6 @@ def get_local_image_digest(image: str) -> str: ) return lines[0].replace("sha256:", "") except subprocess.CalledProcessError as e: - return None - else: - return result.stdout.strip().decode().strip("sha256:") + raise errors.ImageNotPresentException( + f"The image {image} does not exist locally" + )