Default to "", like the others

Co-Authored-By: hugovk <hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2019-03-27 12:02:51 +02:00 committed by GitHub
parent e40e0093fb
commit 75cce8d3aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)