mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +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:
|
||||
raise ValueError("Size must be a tuple of length 2")
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user