Verified Commit 63bfa31d authored by Hueser, Christian (FWCC) - 138593's avatar Hueser, Christian (FWCC) - 138593
Browse files

Skip removing of answers if ID is not existing

* Method remove_answers of class Question need to skip deletion of
answers if the participant ID is not (anymore) existing in dictionary of
answers given.
parent 9f9afe33
Pipeline #100814 passed with stage
in 54 seconds
...@@ -188,6 +188,7 @@ class Question(YamlConstructable, Identifiable): ...@@ -188,6 +188,7 @@ class Question(YamlConstructable, Identifiable):
Invalid IDs are ignored. Invalid IDs are ignored.
""" """
for participant_id in participant_ids: for participant_id in participant_ids:
if participant_id in self._answers:
del self._answers[participant_id] del self._answers[participant_id]
@property @property
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment