diff --git a/taiga/projects/tagging/validators.py b/taiga/projects/tagging/validators.py index 4de1f395..779c247c 100644 --- a/taiga/projects/tagging/validators.py +++ b/taiga/projects/tagging/validators.py @@ -77,7 +77,7 @@ class EditTagTagValidator(ProjectTagValidator): def validate_color(self, attrs, source): color = attrs.get(source, None) - if not re.match('^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$', color): + if color and not re.match('^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$', color): raise ValidationError(_("The color is not a valid HEX color.")) return attrs