This commit is contained in:
Kovid Goyal 2023-01-03 07:16:01 +05:30
parent cd98541fd4
commit e3b65de697
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -42,7 +42,10 @@ class KF8Writer:
def __init__(self, oeb, opts, resources):
self.oeb, self.opts, self.log = oeb, opts, oeb.log
self.compress = not self.opts.dont_compress
try:
self.compress = not self.opts.dont_compress
except Exception:
self.compress = True
self.has_tbs = False
self.log.info('Creating KF8 output')