Skip to content

Commit dc69444

Browse files
Update removeStamps.py
1 parent 4fd0bf3 commit dc69444

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Uses-Cases/Stamps/remove/removeStamps.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}")
@@ -92,4 +92,4 @@ def delete_stamp_by_id(self):
9292
pdf_stamps.upload_document()
9393
pdf_stamps.delete_stamp_by_id()
9494
pdf_stamps.delete_page_stamps()
95-
pdf_stamps.download_result()
95+
pdf_stamps.download_result()

0 commit comments

Comments
 (0)