Added release notes for #5942

This commit is contained in:
Andrew Murray 2022-02-10 12:41:36 +11:00
parent f797137ab5
commit 912296200c
2 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,7 @@ Changelog (Pillow)
- Ensure duplicated file pointer is closed #5946
[radarhere]
- Added specific error if ImagePath coordinate type is incorrect #5942
- Added specific error if path coordinate type is incorrect #5942
[radarhere]
- Return an empty bytestring from tobytes() for an empty image #5938

View File

@ -11,6 +11,13 @@ Performing a negative crop on an image previously just returned a `(0, 0)` image
it will raise a `ValueError`, to help reduce confusion if a user has unintentionally
provided the wrong arguments.
Added specific error if path coordinate type is incorrect
---------------------------------------------------------
Rather than returning a `SystemError`, passing the incorrect types of coordinates into
a path will now raise a more specific `ValueError`, with the message "incorrect
coordinate type".
API Additions
=============