From 54ddf5ec5fac29f3364600277043dff5aeed3804 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 24 Apr 2019 12:03:12 +0530 Subject: [PATCH] Log underlying exception when converting RTF fails --- src/calibre/ebooks/conversion/plugins/rtf_input.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/conversion/plugins/rtf_input.py b/src/calibre/ebooks/conversion/plugins/rtf_input.py index f94ccc9ec4..5bf2d79475 100644 --- a/src/calibre/ebooks/conversion/plugins/rtf_input.py +++ b/src/calibre/ebooks/conversion/plugins/rtf_input.py @@ -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)