mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +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.
|
||||
: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":
|
||||
|
|
Loading…
Reference in New Issue
Block a user