mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
0cb571527d
commit
1962d12290
@ -192,9 +192,13 @@ class InputFormatPlugin(Plugin):
|
|||||||
|
|
||||||
def __call__(self, stream, options, file_ext, log,
|
def __call__(self, stream, options, file_ext, log,
|
||||||
accelerators, output_dir):
|
accelerators, output_dir):
|
||||||
log('InputFormatPlugin: %s running'%self.name)
|
try:
|
||||||
if hasattr(stream, 'name'):
|
log('InputFormatPlugin: %s running'%self.name)
|
||||||
log('on', stream.name)
|
if hasattr(stream, 'name'):
|
||||||
|
log('on', stream.name)
|
||||||
|
except:
|
||||||
|
# In case stdout is broken
|
||||||
|
pass
|
||||||
|
|
||||||
with CurrentDir(output_dir):
|
with CurrentDir(output_dir):
|
||||||
for x in os.listdir('.'):
|
for x in os.listdir('.'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user