diff --git a/src/PIL/ImageCms.py b/src/PIL/ImageCms.py index aee1ba624..544b7a60d 100644 --- a/src/PIL/ImageCms.py +++ b/src/PIL/ImageCms.py @@ -819,7 +819,7 @@ def getProfileModel(profile): # add an extra newline to preserve pyCMS compatibility if not isinstance(profile, ImageCmsProfile): profile = ImageCmsProfile(profile) - return profile.profile.model + "\n" + return (profile.profile.model or "") + "\n" except (AttributeError, IOError, TypeError, ValueError) as v: raise PyCMSError(v)