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 @@ -59,9 +59,9 @@ def download_result(self):
59
59
return
60
60
61
61
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 )
63
63
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 ))
65
65
logging .info (f"download_result(): File successfully downloaded: { local_path } " )
66
66
except Exception as e :
67
67
logging .error (f"download_result(): Failed to download file: { e } " )
@@ -118,4 +118,4 @@ def append_text_header_page(self):
118
118
pdf_header_footer .upload_document ()
119
119
pdf_header_footer .append_text_header ()
120
120
pdf_header_footer .append_text_header_page ()
121
- pdf_header_footer .download_result ()
121
+ pdf_header_footer .download_result ()
You can’t perform that action at this time.
0 commit comments