Commit 22b7fa3c by 刘豪

添加重试

parent b11a0c65
Showing with 1 additions and 0 deletions
......@@ -222,6 +222,7 @@ def down_and_handle(ftp_client):
handle_hk_csv(extract_dir + handle_file_name_1, conf_environment, rs_hk_supplier_id)
handle_cn_csv(extract_dir + handle_file_name_3, conf_environment, rs_cn_supplier_id)
except Exception as e:
remove_file(extract_dir)
logger.error("报错:{}, 重试".format(e))
down_and_handle(ftp_client)
return extract_dir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment