do not fail indexing documents that do not have keywords
This commit is contained in:
parent
09de4122cf
commit
e47b8408cb
|
@ -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:
|
||||
|
|
Reference in New Issue