Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 修复了纯文字章节引发的错误 #302

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

H2Sxxa
Copy link
Contributor

@H2Sxxa H2Sxxa commented Nov 24, 2023

#301 的错误原因似乎就是出现了类似于这样的纯文字章节,我使用了一个try来尝试忽略这种章节

jobs=[]
job_info = None 
try:
    jobs,job_info = chaoxing.get_job_list(course["clazzId"], course["courseId"], course["cpi"], point["id"])
except:
    logger.warning(f"跳过错误章节 -> {point['title']}")

image

@sujoshua
Copy link

sujoshua commented Dec 6, 2023

+1,遇到了一个纯空白的页面,用该pr的方法成功解决

@Samueli924 Samueli924 merged commit 97c3bf6 into Samueli924:main Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants