def process_formdata(self, valuelist):
        from colour import Color

        if valuelist:
            if valuelist[0] == u'' or valuelist[0] == '':
                self.data = None
            else:
                try:
                    self.data = Color(valuelist[0])
                except __HOLE__:
                    self.data = None
                    raise ValueError(self.gettext(self.error_msg))
dataset/ETHPy150Open kvesteri/wtforms-components/wtforms_components/fields/color.py/ColorField.process_formdata