Commit 041a8f59 authored by Ayush Tiwari's avatar Ayush Tiwari

multiple_catalog: Handle unindexing case when erp5 catalog(s) aren't installed

parent 272b0be4
......@@ -901,7 +901,11 @@ class ZCatalog(Folder, Persistent, Implicit):
security.declarePrivate('beforeUncatalogObject')
def beforeUncatalogObject(self, uid=None,path=None, sql_catalog_id=None):
""" wrapper around catalog """
catalog_id_list = self.getERP5CatalogIdList()
try:
catalog_id_list = self.getERP5CatalogIdList()
except AttributeError:
catalog_id_list = []
for sql_catalog_id in catalog_id_list:
catalog = self.getSQLCatalog(sql_catalog_id)
if catalog is not 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