Skip to content

Commit

Permalink
Merge pull request #7560 from radarhere/string_length_check
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 21, 2023
2 parents b638d05 + 524b823 commit 0331d9d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/PIL/ImageFont.py
Expand Up @@ -732,7 +732,6 @@ def getlength(self, text, *args, **kwargs):
if self.orientation in (Image.Transpose.ROTATE_90, Image.Transpose.ROTATE_270):
msg = "text length is undefined for text rotated by 90 or 270 degrees"
raise ValueError(msg)
_string_length_check(text)
return self.font.getlength(text, *args, **kwargs)


Expand Down

0 comments on commit 0331d9d

Please sign in to comment.