Updated error message

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2022-03-06 07:27:11 +11:00 committed by GitHub
parent 56324c300d
commit 633abcbe7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ class FtexImageFile(ImageFile.ImageFile):
def _open(self): def _open(self):
if not _accept(self.fp.read(4)): 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 struct.unpack("<i", self.fp.read(4)) # version
self._size = struct.unpack("<2i", self.fp.read(8)) self._size = struct.unpack("<2i", self.fp.read(8))
mipmap_count, format_count = struct.unpack("<2i", self.fp.read(8)) mipmap_count, format_count = struct.unpack("<2i", self.fp.read(8))