diff --git a/gui/albula/controller.py b/gui/albula/controller.py index 5eade98d..ba67f800 100644 --- a/gui/albula/controller.py +++ b/gui/albula/controller.py @@ -11,7 +11,7 @@ from epics import PV from enum import Enum import platform -from PIL import Image +from PIL import Image, UnidentifiedImageError from io import BytesIO import os @@ -165,7 +165,7 @@ def get_eiger_monitor_image(self): # for EIGER1 img = Image.open(img_bytes) array = numpy.array(img) array[array == 65535] = 0 - except: + except UnidentifiedImageError: logger.error("Could not get image from EIGER") array = numpy.zeros((3110, 3269))