Skip to content

Commit 5d9cc10

Browse files
committed
raise valueerror if file does not exist
1 parent 9cdb984 commit 5d9cc10

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/python_gardenlinux_lib/oras/registry.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,7 @@ def push_image_manifest(
583583
file_path = os.path.join(build_artifacts_dir, artifact["file_name"])
584584

585585
if not os.path.exists(file_path):
586-
logger.error(f"{file_path} does not exist.")
587-
continue
586+
raise ValueError(f"{file_path} does not exist.")
588587

589588
cleanup_blob = False
590589
if os.path.isdir(file_path):

0 commit comments

Comments
 (0)