From 45ee6e13be133cce3a89a548897f0cbcb2d2c2d2 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 12:46:50 +0100 Subject: [PATCH] . --- rapids/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rapids/views.py b/rapids/views.py index f890a73e..289a871d 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -779,8 +779,10 @@ def mark(request, pk, sk): # this could be improved if question.normal: incorrect_answers = question.get_user_answers() - incorrect_answers.remove("") - incorrect_answers.remove("normal") + if "" in incorrect_answers: + incorrect_answers.remove("") + if "normal" in incorrect_answers: + incorrect_answers.remove("normal") return render( request,