--- a/src/pyams_thesaurus/thesaurus.py Tue May 16 11:25:21 2017 +0200
+++ b/src/pyams_thesaurus/thesaurus.py Mon May 22 00:43:49 2017 +0200
@@ -374,7 +374,7 @@
thesaurus = get_parent(context, IThesaurus)
if thesaurus is None:
context_manager = IThesaurusContextManager(context, None)
- if context_manager is not None:
+ if (context_manager is not None) and context_manager.thesaurus_name:
thesaurus = query_utility(IThesaurus, name=context_manager.thesaurus_name)
if thesaurus is not None:
extracts = IThesaurusExtracts(thesaurus)