Skip to content

Commit 2187bc9

Browse files
Update appendTextHeader.py
1 parent 21c7bc4 commit 2187bc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Uses-Cases/HeaderFooter/appendTextHeader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ def download_result(self):
5959
return
6060

6161
try:
62-
file_path = self.pdf_api.download_file(Config.PDF_DOCUMENT_NAME)
62+
temp_file = self.pdf_api.download_file(Config.PDF_DOCUMENT_NAME)
6363
local_path = Config.LOCAL_FOLDER / Config.LOCAL_RESULT_DOCUMENT_NAME
64-
shutil.move(file_path, str(local_path))
64+
shutil.move(temp_file, str(local_path))
6565
logging.info(f"download_result(): File successfully downloaded: {local_path}")
6666
except Exception as e:
6767
logging.error(f"download_result(): Failed to download file: {e}")
@@ -118,4 +118,4 @@ def append_text_header_page(self):
118118
pdf_header_footer.upload_document()
119119
pdf_header_footer.append_text_header()
120120
pdf_header_footer.append_text_header_page()
121-
pdf_header_footer.download_result()
121+
pdf_header_footer.download_result()

0 commit comments

Comments
 (0)