Commit 9ef08cb2 authored by Aurel's avatar Aurel

do not fail if domain no longer exists


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20159 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9e1d6553
......@@ -1114,7 +1114,10 @@ class ListBoxRenderer:
if root is not None :
root_dict[base_domain] = ('portal_categories', domain)
elif domain_tool is not None:
root = domain_tool.getDomainByPath(domain, None)
try:
root = domain_tool.getDomainByPath(domain, None)
except KeyError:
root = None
if root is not None:
root_dict[base_domain] = ('portal_domains', domain)
if root is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment