diff --git a/discover_overlay/image_getter.py b/discover_overlay/image_getter.py index 392000f..7750827 100644 --- a/discover_overlay/image_getter.py +++ b/discover_overlay/image_getter.py @@ -113,10 +113,11 @@ class SurfaceGetter(): log.error("Unknown image type: %s", mixpath) except FileNotFoundError: log.error("File not found: %s", mixpath) - surface = from_pil(image) - if surface: - self.func(self.identifier, surface) - return + if image: + surface = from_pil(image) + if surface: + self.func(self.identifier, surface) + return def from_pil(image, alpha=1.0):