We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
代码报错截图
网页端课程报错任务点截图 此处上传出现报错的任务点的网页端截图
其他内容 您觉得对问题反馈有帮助的内容
The text was updated successfully, but these errors were encountered:
我尝试了python main.py和python main.py -c config.ini两种方法,都是同样的结果(如上方“代码报错截图所示”) 所使用的系统:Ubuntu22.04.4-desktop 所使用的python环境:miniconda
python main.py
python main.py -c config.ini
Sorry, something went wrong.
我在Window10中尝试运行,也是一样的错误
我发现问题在于有些课程的margint10没有title属性,因此在执行以下程序时会报错:
margint10
title
_course_detail["desc"] = course.select_one("p.margint10").attrs["title"]
这个属性在后续内容中没有被使用到,因此可以采用异常处理的手段来避免程序中断,修改后的内容如下:
try: _course_detail["desc"] = course.select_one("p.margint10").attrs["title"] except: _course_detail["desc"] = “无”
try:
except:
_course_detail["desc"] = “无”
修复获取课程列表无desc报错#333
6e7eba8
No branches or pull requests
代码报错截图
网页端课程报错任务点截图
此处上传出现报错的任务点的网页端截图
其他内容
您觉得对问题反馈有帮助的内容
The text was updated successfully, but these errors were encountered: