Skip to content

Commit f961136

Browse files
Update removePage.py
1 parent f12c3c7 commit f961136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Uses-Cases/Pages/remove/removePage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def download_result(self):
4747
""" Download the processed PDF document from the Aspose Cloud server. """
4848
if self.pdf_api:
4949
try:
50-
file_path = self.pdf_api.download_file(Config.PDF_DOCUMENT_NAME)
50+
temp_file = self.pdf_api.download_file(Config.PDF_DOCUMENT_NAME)
5151
local_path = Config.LOCAL_FOLDER / Config.LOCAL_RESULT_DOCUMENT_NAME
52-
shutil.move(file_path, str(local_path))
52+
shutil.move(temp_file, str(local_path))
5353
logging.info(f"download_result(): File successfully downloaded: {local_path}")
5454
except Exception as e:
5555
logging.error(f"download_result(): Failed to download file: {e}")

0 commit comments

Comments
 (0)