From 81c347777f0bbee54124317108057e97c812ee25 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 15 Jun 2023 08:07:29 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/mobi/reader/mobi6.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/mobi/reader/mobi6.py b/src/calibre/ebooks/mobi/reader/mobi6.py index de1f42f102..75e43a1926 100644 --- a/src/calibre/ebooks/mobi/reader/mobi6.py +++ b/src/calibre/ebooks/mobi/reader/mobi6.py @@ -791,6 +791,7 @@ class MobiReader: try: num += (ord(data[off:off+1]) & 0x3) + 1 except TypeError: + self.log.warn('Invalid sizeof trailing entries') num += 1 return num