--- a/src/pyams_content/component/theme/zmi/__init__.py Wed Jan 13 14:10:56 2021 +0100
+++ b/src/pyams_content/component/theme/zmi/__init__.py Wed Jan 27 15:46:21 2021 +0100
@@ -141,9 +141,10 @@
if 'themes' in self.widgets:
widget = self.widgets['themes']
target = get_parent(self.context, IThemesManagerTarget)
- manager = IThemesManager(target)
- widget.thesaurus_name = manager.thesaurus_name
- widget.extract_name = manager.extract_name
+ if target is not None:
+ manager = IThemesManager(target)
+ widget.thesaurus_name = manager.thesaurus_name
+ widget.extract_name = manager.extract_name
@adapter_config(context=(IThemesTarget, IAdminLayer, BaseThemesEditForm), provides=IPageHeader)