do not fail indexing documents that do not have keywords

This commit is contained in:
Frédéric Péters 2014-01-02 14:01:55 +01:00
parent 09de4122cf
commit e47b8408cb
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def document_dynamic_searchable_text_indexer(obj):
except (ConflictError, KeyboardInterrupt):
raise
if hasattr(obj, 'keywords'):
if hasattr(obj, 'keywords') and obj.keywords:
factory = getUtility(IVocabularyFactory, 'dms.thesaurus.simple')
vocabulary = factory(obj)
for keyword in obj.keywords: