mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-05 21:53:15 +03:00
Merge pull request #4303 from radarhere/exception
Updated exception documentation
This commit is contained in:
commit
bbaebe0d20
|
@ -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