mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Changed error wording
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
af90dd773b
commit
591231bbb4
|
@ -1146,9 +1146,9 @@ class Image:
|
|||
return self.copy()
|
||||
|
||||
if box[2] < box[0]:
|
||||
raise ValueError("Region right less than region left")
|
||||
raise ValueError("Coordinate 'right' is less than 'left'")
|
||||
elif box[3] < box[1]:
|
||||
raise ValueError("Region lower less than region upper")
|
||||
raise ValueError("Coordinate 'lower' is less than 'upper'")
|
||||
|
||||
self.load()
|
||||
return self._new(self._crop(self.im, box))
|
||||
|
|
Loading…
Reference in New Issue
Block a user