do not break on missing intid
This commit is contained in:
parent
49efef4243
commit
bf7b2bce31
|
@ -36,7 +36,10 @@ class FolderViewlet(grok.Viewlet):
|
|||
def documents(self):
|
||||
intids = component.getUtility(IIntIds)
|
||||
catalog = component.getUtility(ICatalog)
|
||||
intid = intids.getId(self.context)
|
||||
try:
|
||||
intid = intids.getId(self.context)
|
||||
except KeyError:
|
||||
return []
|
||||
documents = []
|
||||
for item in catalog.findRelations({'to_id': intid}):
|
||||
if item.isBroken():
|
||||
|
|
Reference in New Issue