Ignore KeyError when looking up broken catalog entries
This commit is contained in:
parent
95674a16b3
commit
45d111fc85
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue