1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-03-06 01:05:52 +01:00

Next portion of logging adapt.

This commit is contained in:
2021-06-24 19:42:51 +02:00
parent 84abd62a61
commit 6dfcaea2dd
20 changed files with 105 additions and 122 deletions

View File

@@ -90,7 +90,7 @@ class FB2Input(InputFormatPlugin):
ss = f.read()
ss = ss.replace("__FB_NS__", fb_ns)
if options.no_inline_fb2_toc:
log('Disabling generation of inline FB2 TOC')
log.info('Disabling generation of inline FB2 TOC')
ss = re.compile(r'<!-- BUILD TOC -->.*<!-- END BUILD TOC -->',
re.DOTALL).sub('', ss)
@@ -180,7 +180,7 @@ class FB2Input(InputFormatPlugin):
data = base64_decode(raw)
except TypeError:
self.log.exception('Binary data with id=%s is corrupted, '
'ignoring' % elem.get('id'))
'ignoring', elem.get('id'))
else:
with open(fname, 'wb') as f:
f.write(data)