author | Thierry Florac <tflorac@ulthar.net> |
Wed, 05 Sep 2018 16:23:00 +0200 | |
changeset 924 | e33b18ba971b |
parent 923 | b57388b3beb3 |
child 925 | 9c8e01516f97 |
src/pyams_content/component/paragraph/zmi/__init__.py | file | annotate | diff | comparison | revisions |
--- a/src/pyams_content/component/paragraph/zmi/__init__.py Wed Sep 05 12:05:36 2018 +0200 +++ b/src/pyams_content/component/paragraph/zmi/__init__.py Wed Sep 05 16:23:00 2018 +0200 @@ -175,7 +175,7 @@ return MenuDivider.__new__(cls) for factory_name in settings.allowed_paragraphs or (): factory = query_utility(IParagraphFactory, name=factory_name) - if factory.secondary_menu: + if (factory is not None) and factory.secondary_menu: return MenuDivider.__new__(cls) return None