Skip to content

Commit 4fd0bf3

Browse files
Update appendStamps.py
1 parent fded853 commit 4fd0bf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Uses-Cases/Stamps/add/appendStamps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ def download_result(self):
6767
return
6868

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

0 commit comments

Comments
 (0)