mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
From KeyError to ValueError when saving image
When saving an image, if the extension is not determined it raises a ValueError (while internally it manages a KeyError) so I propose this change
This commit is contained in:
parent
37f0e9595c
commit
e5160bd373
|
@ -1894,7 +1894,7 @@ class Image(object):
|
|||
parameter should always be used.
|
||||
:param params: Extra parameters to the image writer.
|
||||
:returns: None
|
||||
:exception KeyError: If the output format could not be determined
|
||||
:exception ValueError: If the output format could not be determined
|
||||
from the file name. Use the format option to solve this.
|
||||
:exception IOError: If the file could not be written. The file
|
||||
may have been created, and may contain partial data.
|
||||
|
|
Loading…
Reference in New Issue
Block a user