From 1962d12290622c5b89287af0737c0ee59737fda0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 22 Feb 2012 08:30:52 +0530 Subject: [PATCH] ... --- src/calibre/customize/conversion.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/calibre/customize/conversion.py b/src/calibre/customize/conversion.py index d035ad9666..2f0d843ba1 100644 --- a/src/calibre/customize/conversion.py +++ b/src/calibre/customize/conversion.py @@ -192,9 +192,13 @@ class InputFormatPlugin(Plugin): def __call__(self, stream, options, file_ext, log, accelerators, output_dir): - log('InputFormatPlugin: %s running'%self.name) - if hasattr(stream, 'name'): - log('on', stream.name) + try: + log('InputFormatPlugin: %s running'%self.name) + if hasattr(stream, 'name'): + log('on', stream.name) + except: + # In case stdout is broken + pass with CurrentDir(output_dir): for x in os.listdir('.'):