From 7077fa9c18b7c72069ae594bda581b7ff191cc1d Mon Sep 17 00:00:00 2001 From: jmarmstrong1207 Date: Sat, 28 Sep 2024 21:05:05 -0700 Subject: [PATCH] Add to log that converted file moved to failed folder --- scripts/convert-library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/convert-library.py b/scripts/convert-library.py index 41ccd94..6b25c91 100644 --- a/scripts/convert-library.py +++ b/scripts/convert-library.py @@ -115,7 +115,7 @@ def convert_library(self): print_and_log(f"[convert-library]: Import of {os.path.basename(target_filepath)} successfully completed!") except subprocess.CalledProcessError as e: - print_and_log(f"[convert-library]: Import of {os.path.basename(target_filepath)} was not successfully completed. See the following error:\n{e}") + print_and_log(f"[convert-library]: Import of {os.path.basename(target_filepath)} was not successfully completed. Converted file moved to /config/processed_books/failed/{os.path.basename(target_filepath)}. See the following error:\n{e}") shutil.move(target_filepath, f"/config/processed_books/failed/{os.path.basename(target_filepath)}") self.current_book += 1 continue