avoid words that would be None when indexing

This commit is contained in:
Frédéric Péters 2014-07-04 10:59:26 +02:00
parent 101c84d801
commit c1da50265a
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class DmsKeyword(Item):
except KeyError:
continue
words.append(keyword.get_words_for_indexation(limit=limit-1))
return ' '.join(words)
return ' '.join([x for x in words if x])
def get_keyword_tree(self, limit=5):
thesaurus = aq_parent(self)