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 @@ -63,9 +63,9 @@ def download_result(self):
6363 return
6464
6565 try :
66- file_path = self .pdf_api .download_file (Config .PDF_DOCUMENT_NAME )
66+ temp_file = self .pdf_api .download_file (Config .PDF_DOCUMENT_NAME )
6767 local_path = Config .LOCAL_FOLDER / Config .LOCAL_RESULT_DOCUMENT_NAME
68- shutil .move (file_path , str (local_path ))
68+ shutil .move (temp_file , str (local_path ))
6969 logging .info (f"download_result(): File successfully downloaded: { local_path } " )
7070 except Exception as e :
7171 logging .error (f"download_result(): Failed to download file: { e } " )
@@ -100,4 +100,4 @@ def append_link(self):
100100 pdf_links = PdfLinks ()
101101 pdf_links .upload_document ()
102102 pdf_links .append_link ()
103- pdf_links .download_result ()
103+ pdf_links .download_result ()
You can’t perform that action at this time.
0 commit comments