Commit b0b9773e authored by Vincent Pelletier's avatar Vincent Pelletier

Remove a "try..except" block which only raises in all its "except" blocks.


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