diff --git a/src/collective/dms/thesaurus/keywordsfield.py b/src/collective/dms/thesaurus/keywordsfield.py index c9de03f..fafd684 100644 --- a/src/collective/dms/thesaurus/keywordsfield.py +++ b/src/collective/dms/thesaurus/keywordsfield.py @@ -73,6 +73,9 @@ class ThesaurusKeywordsWidget(SequenceWidget): def displayItems(self): thesaurus = utils.get_thesaurus_object(self.context) + if thesaurus is None: + return [] + thesaurus_path = '/'.join(thesaurus.getPhysicalPath()) value = [] for token in self.value: