Skip to content

Commit

Permalink
Merge pull request #224 from Haidra-Org/main
Browse files Browse the repository at this point in the history
fix: don't crash on missing source image
  • Loading branch information
tazlin authored Mar 21, 2024
2 parents 0b7409a + 706e7d8 commit 23ac018
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hordelib/nodes/node_image_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def INPUT_TYPES(s):
def load_image(self, image):
if image is None:
logger.error("Input image is None in HordeImageLoader - this is a bug, please report it!")
raise ValueError("Input image is None in HordeImageLoader")
# Use a default image
image = PIL.Image.new("RGB", (64, 64), (255, 255, 255))

if not isinstance(image, PIL.Image.Image):
logger.error(f"Input image is not a PIL Image, it is a {type(image)}")
Expand Down

0 comments on commit 23ac018

Please sign in to comment.