Merge pull request #3348 from radarhere/patch-1

From KeyError to ValueError when saving image
This commit is contained in:
Andrew Murray 2018-09-11 19:38:14 +10:00 committed by GitHub
commit bd069ae1ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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