Fix a potential wrong operator bug

This commit is contained in:
Jingxuan He 2022-06-15 17:39:37 +02:00 committed by GitHub
parent e80ddfd2b6
commit b47bcc246f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -377,7 +377,7 @@ def profileToProfile(
raise PyCMSError("renderingIntent must be an integer between 0 and 3")
if not isinstance(flags, int) or not (0 <= flags <= _MAX_FLAG):
raise PyCMSError("flags must be an integer between 0 and %s" + _MAX_FLAG)
raise PyCMSError("flags must be an integer between 0 and %s" % _MAX_FLAG)
try:
if not isinstance(inputProfile, ImageCmsProfile):