Changed error wording

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2022-01-21 08:19:27 +11:00 committed by GitHub
parent af90dd773b
commit 591231bbb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))