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 @@ -64,9 +64,9 @@ def download_result(self):
64
64
return
65
65
66
66
try :
67
- file_path = self .pdf_api .download_file (Config .PDF_DOCUMENT_NAME )
67
+ temp_file = self .pdf_api .download_file (Config .PDF_DOCUMENT_NAME )
68
68
local_path = Config .LOCAL_FOLDER / Config .LOCAL_RESULT_DOCUMENT_NAME
69
- shutil .move (file_path , str (local_path ))
69
+ shutil .move (temp_file , str (local_path ))
70
70
logging .info (f"download_result(): File successfully downloaded: { local_path } " )
71
71
except Exception as e :
72
72
logging .error (f"download_result(): Failed to download file: { e } " )
@@ -126,4 +126,4 @@ def append_image_heade_page(self):
126
126
pdf_header_footer .upload_file (Config .IMAGE_HEADER_FILE )
127
127
pdf_header_footer .append_image_header ()
128
128
pdf_header_footer .append_image_heade_page ()
129
- pdf_header_footer .download_result ()
129
+ pdf_header_footer .download_result ()
You can’t perform that action at this time.
0 commit comments