mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
d2efd7dd5f
commit
e4f13020e1
|
@ -934,7 +934,7 @@ def load_path(filename: str | bytes) -> ImageFont:
|
|||
pass
|
||||
msg = f"cannot find font file '{filename}' in `sys.path`"
|
||||
if os.path.exists(filename):
|
||||
msg += f", did you mean `ImageFont.load(\"{filename}\")` instead?"
|
||||
msg += f', did you mean `ImageFont.load("{filename}")` instead?'
|
||||
|
||||
raise OSError(msg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user