mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 18:24:57 +03:00
Merge pull request #3348 from radarhere/patch-1
From KeyError to ValueError when saving image
This commit is contained in:
commit
bd069ae1ab
|
@ -1894,7 +1894,7 @@ class Image(object):
|
||||||
parameter should always be used.
|
parameter should always be used.
|
||||||
:param params: Extra parameters to the image writer.
|
:param params: Extra parameters to the image writer.
|
||||||
:returns: None
|
: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.
|
from the file name. Use the format option to solve this.
|
||||||
:exception IOError: If the file could not be written. The file
|
:exception IOError: If the file could not be written. The file
|
||||||
may have been created, and may contain partial data.
|
may have been created, and may contain partial data.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user