Skip to content

Commit

Permalink
Add to log that converted file moved to failed folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarmstrong1207 committed Sep 29, 2024
1 parent 365d413 commit 7077fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/convert-library.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7077fa9

Please sign in to comment.