diff --git a/tabellio/searchform/form.py b/tabellio/searchform/form.py index 7697a11..27c69a1 100644 --- a/tabellio/searchform/form.py +++ b/tabellio/searchform/form.py @@ -294,6 +294,8 @@ def possible_sessions(context): def possible_polgroups(context): current = getToolByName(context, 'portal_url').getPortalObject() settings = component.getUtility(IRegistry).forInterface(ITabellioSettings, False) + if not settings.polgroupsPath: + return SimpleVocabulary([]) for part in settings.polgroupsPath.split('/'): if not part: continue