整理项目结构,优化配置项

This commit is contained in:
2024-07-12 13:51:47 +08:00
parent 0f672c7961
commit ab15cb1fc3
33 changed files with 275 additions and 506 deletions

View File

@@ -1,9 +1,8 @@
import logging.config
import os
import traceback
from auto_email.error_email import send_error_email
from config.log import LOGGING_CONFIG
from log import LOGGING_CONFIG
from photo_review.photo_review import main
# 项目必须从此处启动,否则代码中的相对路径可能导致错误的发生
@@ -18,4 +17,5 @@ if __name__ == '__main__':
main()
except Exception as e:
log.error(traceback.format_exc())
send_error_email(program_name='照片审核关键信息抽取脚本', error_name=repr(e), error_detail=traceback.format_exc())
send_error_email(program_name='照片审核关键信息抽取脚本', error_name=repr(e),
error_detail=traceback.format_exc())