Skip to content

Conversation

@seer-by-sentry
Copy link
Contributor

Fixes SECRANDOM-2W. The issue was that: Unset default class causes draw_random_students to return early, leaving final_selected_students as None, leading to TypeError in create_student_label.

  • 增加了对 final_selected_studentsselected_students 为空或 None 的健壮性检查,避免潜在错误。
  • 优化了随机点名动画在未抽取到学生或未设置默认班级时的处理逻辑,确保动画能正常停止并给出警告。
  • 在未设置默认抽取名单或未抽取到学生时,增加了相应的日志警告。

This fix was generated by Seer in Sentry, triggered by wsxyt. 👁️ Run ID: 552657

Not quite right? Click here to continue debugging with Seer.

@WSXYT WSXYT requested a review from lzy98276 January 12, 2026 16:49
@lzy98276 lzy98276 marked this pull request as ready for review January 12, 2026 22:44
@lzy98276 lzy98276 merged commit 0bc1af6 into master Jan 12, 2026
7 of 9 checks passed
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.

2 participants