mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Updated exception documentation [ci skip]
This commit is contained in:
parent
0fe6955da5
commit
ca0209d194
|
@ -2687,8 +2687,9 @@ def open(fp, mode="r"):
|
||||||
and be opened in binary mode.
|
and be opened in binary mode.
|
||||||
:param mode: The mode. If given, this argument must be "r".
|
:param mode: The mode. If given, this argument must be "r".
|
||||||
:returns: An :py:class:`~PIL.Image.Image` object.
|
:returns: An :py:class:`~PIL.Image.Image` object.
|
||||||
:exception IOError: If the file cannot be found, or the image cannot be
|
:exception FileNotFoundError: If the file cannot be found.
|
||||||
opened and identified.
|
:exception PIL.UnidentifiedImageError: If the image cannot be opened and
|
||||||
|
identified.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if mode != "r":
|
if mode != "r":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user