Skip to content

Commit 96bb199

Browse files
Update pageAppendTextStamp.py
1 parent ec663b1 commit 96bb199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Uses-Cases/Pages/stamp/pageAppendTextStamp.py

Lines changed: 2 additions & 2 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}")

0 commit comments

Comments
 (0)