summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-07-04 08:59:26 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-07-04 08:59:26 (GMT)
commitc1da50265ae43a9bc9c82fe49aabd6684dedf093 (patch)
tree75600bb49acfa7abb78a716084c77c2cf34e7199
parent101c84d80192b1a2438d6464f8ce15b60967e19a (diff)
downloadcollective.dms.thesaurus-c1da50265ae43a9bc9c82fe49aabd6684dedf093.zip
collective.dms.thesaurus-c1da50265ae43a9bc9c82fe49aabd6684dedf093.tar.gz
collective.dms.thesaurus-c1da50265ae43a9bc9c82fe49aabd6684dedf093.tar.bz2
avoid words that would be None when indexing
-rw-r--r--src/collective/dms/thesaurus/dmskeyword.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collective/dms/thesaurus/dmskeyword.py b/src/collective/dms/thesaurus/dmskeyword.py
index d67fa39..cabc876 100644
--- a/src/collective/dms/thesaurus/dmskeyword.py
+++ b/src/collective/dms/thesaurus/dmskeyword.py
@@ -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)