Commit 6cf8c934 authored by Nicolas Delaby's avatar Nicolas Delaby

append wrapped object only if wrapObject Succeeds

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21006 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d35aa55a
......@@ -786,12 +786,12 @@ class ZCatalog(Folder, Persistent, Implicit):
# wrap object only when sure it will be reindex now
# thus security uid is also reindex
wrap_obj = self.wrapObject(obj, sql_catalog_id=sql_catalog_id)
wrapped_object_list.append(wrap_obj)
except ConflictError:
raise
except:
LOG('WARNING ZSQLCatalog', 0, 'wrapObject failed on the object %r' % (obj,), error=sys.exc_info())
failed_object_list.append(obj)
wrapped_object_list.append(wrap_obj)
# run activity or execute for each archive depending on priority
if len(catalog_dict):
......
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