# HG changeset patch # User Thierry Florac # Date 1531317389 -7200 # Node ID 8bab1101f4efd2b6ecfa65ac397d582e7293d6db # Parent 5eb2f0ff9ba36d57075d81bb7e07ca2471f78ca5 Check thesaurus name diff -r 5eb2f0ff9ba3 -r 8bab1101f4ef src/pyams_thesaurus/zmi/widget/__init__.py --- a/src/pyams_thesaurus/zmi/widget/__init__.py Wed Jul 11 10:18:57 2018 +0200 +++ b/src/pyams_thesaurus/zmi/widget/__init__.py Wed Jul 11 15:56:29 2018 +0200 @@ -178,7 +178,7 @@ @property def top_terms(self): - thesaurus = query_utility(IThesaurus, name=self.thesaurus_name) + thesaurus = query_utility(IThesaurus, name=self.thesaurus_name or '') if thesaurus is not None: return sorted(thesaurus.get_top_terms(extract=self.extract_name), key=lambda x: x.label)