diff --git a/common/lib/capa/capa/inputtypes.py b/common/lib/capa/capa/inputtypes.py index 5a69f6de66..cf5bee3b0b 100644 --- a/common/lib/capa/capa/inputtypes.py +++ b/common/lib/capa/capa/inputtypes.py @@ -866,7 +866,8 @@ class DragAndDropInput(InputTypeBase): self.xml.iterchildren('target')] # custom background color for labels: - label_bg_color = Attribute('label_bg_color').parse_from_xml(self.xml) + label_bg_color = Attribute('label_bg_color', + default=None).parse_from_xml(self.xml) if label_bg_color: to_js['label_bg_color'] = label_bg_color