Commit 815611e2 authored by Michel Pelletier's avatar Michel Pelletier

silently ingore uncataloging absent id

parent 529c6355
......@@ -369,9 +369,7 @@ class Catalog(Persistent, Acquisition.Implicit):
catalogued, otherwise it will not get removed from the catalog
"""
if uid not in self.uids.keys():
raise ValueError, "Uncatalog of absent id %s" % `uid`
try:
rid = self.uids[uid]
for x in self.indexes.values():
......@@ -385,6 +383,9 @@ class Catalog(Persistent, Acquisition.Implicit):
del self.uids[uid]
del self.paths[rid]
except:
pass
def clear(self):
""" clear catalog """
......
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