优化异常邮件发送

This commit is contained in:
2024-07-12 11:24:55 +08:00
parent 846c83bf93
commit eb690ad02c
4 changed files with 32 additions and 25 deletions

View File

@@ -2,7 +2,7 @@ import logging.config
import os
import traceback
from auto_email.error_email import send_an_error_email
from auto_email.error_email import send_error_email
from config.log import LOGGING_CONFIG
from photo_review.photo_review import main
@@ -18,4 +18,4 @@ if __name__ == '__main__':
main()
except Exception as e:
log.error(traceback.format_exc())
send_an_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())