mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
Default to "", like the others
Co-Authored-By: hugovk <hugovk@users.noreply.github.com>
This commit is contained in:
parent
e40e0093fb
commit
75cce8d3aa
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user