From b846e994ec53933d7d8d07fb5d2994bd442b8352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 20 Aug 2014 09:48:50 +0200 Subject: [PATCH] More robust tags color rebuild --- taiga/projects/services/tags_colors.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/taiga/projects/services/tags_colors.py b/taiga/projects/services/tags_colors.py index 113664a5..ab47262c 100644 --- a/taiga/projects/services/tags_colors.py +++ b/taiga/projects/services/tags_colors.py @@ -42,6 +42,9 @@ def update_project_tags_colors_handler(instance): if instance.tags is None: instance.tags = [] + if not isinstance(instance.project.tags_colors, list): + instance.project.tags_colors = [] + for tag in instance.tags: defined_tags = map(lambda x: x[0], instance.project.tags_colors) if tag not in defined_tags: