diff --git a/src/PIL/Image.py b/src/PIL/Image.py index f13a98276..1ceabab45 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -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.