Skip to content

Commit e7e89f5

Browse files
Update replaceLink.py
1 parent 7e18599 commit e7e89f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Uses-Cases/Bookmarks/replace/replaceLink.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ def download_result(self):
6161
return
6262

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

0 commit comments

Comments
 (0)