Updated exception documentation [ci skip]

This commit is contained in:
Andrew Murray 2019-12-26 13:16:49 +11:00
parent 0fe6955da5
commit ca0209d194

View File

@ -2687,8 +2687,9 @@ def open(fp, mode="r"):
and be opened in binary mode.
:param mode: The mode. If given, this argument must be "r".
:returns: An :py:class:`~PIL.Image.Image` object.
:exception IOError: If the file cannot be found, or the image cannot be
opened and identified.
:exception FileNotFoundError: If the file cannot be found.
:exception PIL.UnidentifiedImageError: If the image cannot be opened and
identified.
"""
if mode != "r":