mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-11 00:32:27 +03:00
Update error message
This commit is contained in:
parent
310105625c
commit
0764b2b5e9
|
@ -2036,7 +2036,7 @@ def _check_size(size):
|
||||||
if len(size) != 2:
|
if len(size) != 2:
|
||||||
raise ValueError("Size must be a tuple of length 2")
|
raise ValueError("Size must be a tuple of length 2")
|
||||||
if size[0] < 0 or size[1] < 0:
|
if size[0] < 0 or size[1] < 0:
|
||||||
raise ValueError("Width and Height must be => 0")
|
raise ValueError("Width and height must be >= 0")
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user