File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ def download_result(self):
60
60
return
61
61
62
62
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 )
64
64
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 ))
66
66
logging .info (f"download_result(): File successfully downloaded: { local_path } " )
67
67
except Exception as e :
68
68
logging .error (f"download_result(): Failed to download file: { e } " )
@@ -92,4 +92,4 @@ def delete_stamp_by_id(self):
92
92
pdf_stamps .upload_document ()
93
93
pdf_stamps .delete_stamp_by_id ()
94
94
pdf_stamps .delete_page_stamps ()
95
- pdf_stamps .download_result ()
95
+ pdf_stamps .download_result ()
You can’t perform that action at this time.
0 commit comments