Ignore KeyError when looking up broken catalog entries

This commit is contained in:
Nicolas Demonte 2022-06-20 12:45:52 +02:00
parent 95674a16b3
commit 45d111fc85
1 changed files with 3 additions and 0 deletions

View File

@ -233,6 +233,9 @@ class SolrMaintenanceView(BrowserView):
obj = catalog_traverse(path)
except AttributeError:
return None
except KeyError:
# dirty hack, should help ignore broken entries in catalog
return None
return obj
log('processing %d "unindex" operations next...\n' % len(unindex))
op = notimeout(lambda uid: conn.delete(id=uid))