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 } " )
@@ -141,4 +141,4 @@ def append_text_footer_page(self):
141
141
pdf_header_footer .upload_document ()
142
142
pdf_header_footer .append_text_footer ()
143
143
pdf_header_footer .append_text_footer_page ()
144
- pdf_header_footer .download_result ()
144
+ pdf_header_footer .download_result ()
You can’t perform that action at this time.
0 commit comments