diff --git a/md_pdf/csl.py b/md_pdf/csl.py index bd8f08e..3bf07c6 100644 --- a/md_pdf/csl.py +++ b/md_pdf/csl.py @@ -24,7 +24,6 @@ def download_csl(): bar = ProgressBar() remove_dir(CSL_DIR) - remove_dir(CSL_DOWNLOAD_LINK) def download_handle(count, block_size, total_size): bar.update(int(count * block_size * 100 / total_size)) @@ -48,6 +47,7 @@ def download_csl(): bar.finish() logger.info("Cleaning Up...") + os.close(_) shutil.copytree(CSL_TEMP_DIR, CSL_DIR) os.remove(download_location) remove_dir(CSL_TEMP_DIR)