添加项目说明文件

This commit is contained in:
2024-05-22 11:04:15 +08:00
parent 21c30df5a1
commit 144e70ee5b
3 changed files with 29 additions and 1 deletions

View File

@@ -9,12 +9,12 @@ from photo_review.photo_review import main
if __name__ == '__main__':
logging.config.dictConfig(LOGGING_CONFIG)
log = logging.getLogger()
log.info("照片审核开始")
# 崩溃后的重试次数
retry_time = 2
for _ in range(++retry_time):
try:
log.info("照片审核开始")
main()
except Exception as e:
log.error(traceback.format_exc())