diff --git a/gui/bitmap_loader.py b/gui/bitmap_loader.py index e9590e6b8..dd7b3cc00 100644 --- a/gui/bitmap_loader.py +++ b/gui/bitmap_loader.py @@ -73,7 +73,11 @@ class BitmapLoader(object): @classmethod def getImage(cls, name, location): - return cls.getBitmap(name, location).ConvertToImage() + bmp = cls.getBitmap(name, location) + if bmp is not None: + return bmp.ConvertToImage() + else: + return None @classmethod def loadBitmap(cls, name, location):