mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
oops
This commit is contained in:
parent
ae6e5c3db8
commit
74a12c6598
@ -104,7 +104,7 @@ def process_file(path, options, logger=None):
|
|||||||
html_process_file(html, options, logger)
|
html_process_file(html, options, logger)
|
||||||
finally:
|
finally:
|
||||||
os.chdir(cwd)
|
os.chdir(cwd)
|
||||||
if options.keep_intermediate_files:
|
if hasattr(options, 'keep_intermediate_files') and options.keep_intermediate_files:
|
||||||
logger.debug('Intermediate files in '+ tdir)
|
logger.debug('Intermediate files in '+ tdir)
|
||||||
else:
|
else:
|
||||||
shutil.rmtree(tdir)
|
shutil.rmtree(tdir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user