From 7db0bd24da54f748e2c406471ac9b3d1df4d9744 Mon Sep 17 00:00:00 2001 From: Maxed-Out-99 Date: Sun, 27 Jul 2025 11:38:20 -0700 Subject: [PATCH] raise ValueError for PlaceImageByMask --- maxedoutnodes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/maxedoutnodes.py b/maxedoutnodes.py index 203902a..982e451 100644 --- a/maxedoutnodes.py +++ b/maxedoutnodes.py @@ -561,9 +561,8 @@ class PlaceImageByMask: # If no mask is found, just use the original base image and skip to the next if not bbox: - processed_images.append(base_pil) - continue - + raise ValueError("The base image must be masked where you want the overlay to appear.") + x_min, y_min, x_max, y_max = bbox box_width = x_max - x_min box_height = y_max - y_min