Skip to content

Commit

Permalink
Updated error message
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
  • Loading branch information
radarhere and hugovk committed Mar 5, 2022
1 parent 56324c3 commit 633abcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/FtexImagePlugin.py
Expand Up @@ -95,7 +95,7 @@ class FtexImageFile(ImageFile.ImageFile):

def _open(self):
if not _accept(self.fp.read(4)):
raise SyntaxError("not a FTEX file")
raise SyntaxError("not an FTEX file")
struct.unpack("<i", self.fp.read(4)) # version
self._size = struct.unpack("<2i", self.fp.read(8))
mipmap_count, format_count = struct.unpack("<2i", self.fp.read(8))
Expand Down

0 comments on commit 633abcb

Please sign in to comment.