

def process_formdata(self, valuelist):
    from colour import Color
    if valuelist:
        if ((self[0] == '') or (valuelist[0] == '')):
            self.data = None
        else:
            try:
                self.data = Color(valuelist[0])
            except AttributeError:
                self.data = None
                raise ValueError(self.gettext(self.error_msg))

dataset/ETHPy150Open kvesteri/wtforms-components/wtforms_components/fields/color.py ColorField.process_formdata/VarMisuse@25/31 `valuelist`->`self`