Log underlying exception when converting RTF fails

This commit is contained in:
Kovid Goyal 2019-04-24 12:03:12 +05:30
parent 8f829e6de6
commit 54ddf5ec5f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -256,6 +256,7 @@ class RTFInput(InputFormatPlugin):
try:
xml = self.generate_xml(stream.name)
except RtfInvalidCodeException as e:
self.log.exception('Unable to parse RTF')
raise ValueError(_('This RTF file has a feature calibre does not '
'support. Convert it to HTML first and then try it.\n%s')%e)