mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-31 12:16:13 +01:00
oops
This commit is contained in:
parent
ae6e5c3db8
commit
74a12c6598
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ def process_file(path, options, logger=None):
|
|||
html_process_file(html, options, logger)
|
||||
finally:
|
||||
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)
|
||||
else:
|
||||
shutil.rmtree(tdir)
|
||||
|
|
|
|||
Loading…
Reference in a new issue