From e501fa8d86f3d1adb3cea638dc18fcb49b709bd7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 May 2019 19:17:28 +0530 Subject: [PATCH] Fix converting RTF files with debug pipeline not working --- src/calibre/ebooks/rtf2xml/ParseRtf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/rtf2xml/ParseRtf.py b/src/calibre/ebooks/rtf2xml/ParseRtf.py index e38f640a5d..01a26ba85c 100755 --- a/src/calibre/ebooks/rtf2xml/ParseRtf.py +++ b/src/calibre/ebooks/rtf2xml/ParseRtf.py @@ -552,8 +552,8 @@ class ParseRtf: pass # sys.stderr.write( msg + ' in ' + file_name + "\n") else: - msg = '%s in file %s\n' % (msg, file_name) - raise RtfInvalidCodeException(msg) + msg = '%s in file %s' % (msg, file_name) + print(msg, file=sys.stderr) def __return_code(self, num): if num is None: