mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Updated error string
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
fedb0407b4
commit
c99257abb4
|
@ -2698,7 +2698,7 @@ def open(fp, mode="r"):
|
|||
raise ValueError("bad mode %r" % mode)
|
||||
elif isinstance(fp, io.StringIO):
|
||||
raise ValueError(
|
||||
"StringIO cannot be used to open an image. Binary data must be used instead"
|
||||
"StringIO cannot be used to open an image. Binary data must be used instead."
|
||||
)
|
||||
|
||||
exclusive_fp = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user