[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-09-11 08:33:09 +00:00
parent d2efd7dd5f
commit e4f13020e1

View File

@ -934,7 +934,7 @@ def load_path(filename: str | bytes) -> ImageFont:
pass pass
msg = f"cannot find font file '{filename}' in `sys.path`" msg = f"cannot find font file '{filename}' in `sys.path`"
if os.path.exists(filename): 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) raise OSError(msg)