Skip to content

Commit 21c7bc4

Browse files
Update appendTextFooter.py
1 parent ae947e6 commit 21c7bc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Uses-Cases/HeaderFooter/appendTextFooter.py

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

6262
try:
63-
file_path = self.pdf_api.download_file(Config.PDF_DOCUMENT_NAME)
63+
temp_file = self.pdf_api.download_file(Config.PDF_DOCUMENT_NAME)
6464
local_path = Config.LOCAL_FOLDER / Config.LOCAL_RESULT_DOCUMENT_NAME
65-
shutil.move(file_path, str(local_path))
65+
shutil.move(temp_file, str(local_path))
6666
logging.info(f"download_result(): File successfully downloaded: {local_path}")
6767
except Exception as e:
6868
logging.error(f"download_result(): Failed to download file: {e}")
@@ -141,4 +141,4 @@ def append_text_footer_page(self):
141141
pdf_header_footer.upload_document()
142142
pdf_header_footer.append_text_footer()
143143
pdf_header_footer.append_text_footer_page()
144-
pdf_header_footer.download_result()
144+
pdf_header_footer.download_result()

0 commit comments

Comments
 (0)