添加 service.quizcorrect_option 异常时的日记

This commit is contained in:
洛水.山岭居室 2022-05-25 17:04:14 +08:00
parent 11153b582c
commit 02fa66f7b6

View File

@ -63,6 +63,8 @@ class Quiz(BasePlugins):
if answer["is_correct"] == 1:
correct_option = answer["answer"]
if correct_option is None:
question_id = question["question_id"]
Log.warning(f"Quiz模块 correct_option 异常 question_id[{question_id}] ")
return None
random.shuffle(_options)
index = _options.index(correct_option)