Skip to content

Commit 013fd11

Browse files
Update appendBookmarks.py
1 parent 1f084b8 commit 013fd11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Uses-Cases/Bookmarks/add/appendBookmarks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def download_result(self):
6363
return
6464

6565
try:
66-
file_path = self.pdf_api.download_file(Config.PDF_DOCUMENT_NAME)
66+
temp_file = self.pdf_api.download_file(Config.PDF_DOCUMENT_NAME)
6767
local_path = Config.LOCAL_FOLDER / Config.LOCAL_RESULT_DOCUMENT_NAME
68-
shutil.move(file_path, str(local_path))
68+
shutil.move(temp_file, str(local_path))
6969
logging.info(f"download_result(): File successfully downloaded: {local_path}")
7070
except Exception as e:
7171
logging.error(f"download_result(): Failed to download file: {e}")

0 commit comments

Comments
 (0)