Samueli924 / chaoxing

超星学习通/超星尔雅/泛雅超星全自动无人值守完成任务点
1.86k stars 258 forks source link

[BUG反馈] #380

Closed TilapiaLog closed 2 weeks ago

TilapiaLog commented 3 weeks ago

代码报错截图 2024-11-10 06:24:42.130 | ERROR | main::161 - 错误: UnboundLocalError: cannot access local variable 'q_type' where it is not associated with a value 2024-11-10 06:24:42.177 | ERROR | main::162 - Traceback (most recent call last): File "C:\Users\Administrator\Desktop\CX\main.py", line 152, in chaoxing.study_work(course, job,job_info)


  File "C:\Users\Administrator\Desktop\CX\api\base.py", line 325, in study_work
    questions = decode_questions_info(_resp.text)   # 加载题目信息
  File "C:\Users\Administrator\Desktop\CX\api\decode.py", line 216, in decode_questions_info
    'type': q_type,      # 题型 可提供给题库作为辅助
            ^^^^^^
UnboundLocalError: cannot access local variable 'q_type' where it is not associated with a value

Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\CX\main.py", line 163, in <module>
    raise e
  File "C:\Users\Administrator\Desktop\CX\main.py", line 152, in <module>
    chaoxing.study_work(course, job,job_info)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\Desktop\CX\api\base.py", line 325, in study_work
    questions = decode_questions_info(_resp.text)   # 加载题目信息
  File "C:\Users\Administrator\Desktop\CX\api\decode.py", line 216, in decode_questions_info
    'type': q_type,      # 题型 可提供给题库作为辅助
            ^^^^^^
UnboundLocalError: cannot access local variable 'q_type' where it is not associated with a value

**网页端课程报错任务点截图**
此处上传出现报错的任务点的网页端截图

**其他内容**
您觉得对问题反馈有帮助的内容
Samueli924 commented 2 weeks ago

已合并PR