Merge branch 'feature/teacher' into feature/fork_meta_role

This commit is contained in:
莘权 马 2023-08-09 14:41:18 +08:00
commit 13fa01615a

View file

@ -65,7 +65,7 @@ async def startup(lesson_file: str, investment: float = 3.0, n_round: int = 1, *
"""
lesson = ""
if lesson_file is not None and Path(lesson_file).exists():
if lesson_file and Path(lesson_file).exists():
async with aiofiles.open(lesson_file, mode="r", encoding="utf-8") as reader:
lesson = await reader.read()
logger.info(f"Course content: {lesson}")