mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Fix a potential wrong operator bug
This commit is contained in:
parent
e80ddfd2b6
commit
b47bcc246f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user