Skip to content

Commit ae947e6

Browse files
Update appendImageHeader.py
1 parent c479e10 commit ae947e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Uses-Cases/HeaderFooter/appendImageHeader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def download_result(self):
6464
return
6565

6666
try:
67-
file_path = self.pdf_api.download_file(Config.PDF_DOCUMENT_NAME)
67+
temp_file = self.pdf_api.download_file(Config.PDF_DOCUMENT_NAME)
6868
local_path = Config.LOCAL_FOLDER / Config.LOCAL_RESULT_DOCUMENT_NAME
69-
shutil.move(file_path, str(local_path))
69+
shutil.move(temp_file, str(local_path))
7070
logging.info(f"download_result(): File successfully downloaded: {local_path}")
7171
except Exception as e:
7272
logging.error(f"download_result(): Failed to download file: {e}")
@@ -126,4 +126,4 @@ def append_image_heade_page(self):
126126
pdf_header_footer.upload_file(Config.IMAGE_HEADER_FILE)
127127
pdf_header_footer.append_image_header()
128128
pdf_header_footer.append_image_heade_page()
129-
pdf_header_footer.download_result()
129+
pdf_header_footer.download_result()

0 commit comments

Comments
 (0)