# HG changeset patch # User Sylvain Thénault # Date 1268035517 -3600 # Node ID 3e173d598caddae95d5c09890f619b13d3038e56 # Parent 8a505bf12193b0a6ecfd6927f9f413d3f09be770 [cleanup] fti_* method already try/except exception, no need for additional catch here diff -r 8a505bf12193 -r 3e173d598cad hooks/syncschema.py --- a/hooks/syncschema.py Mon Mar 08 09:04:36 2010 +0100 +++ b/hooks/syncschema.py Mon Mar 08 09:05:17 2010 +0100 @@ -1155,15 +1155,11 @@ len(rset), etype) still_fti = list(schema[etype].indexable_attributes()) for entity in rset.entities(): - try: - source.fti_unindex_entity(session, entity.eid) - for container in entity.fti_containers(): - if still_fti or container is not entity: - source.fti_unindex_entity(session, entity.eid) - source.fti_index_entity(session, container) - except Exception: - self.critical('Error while updating Full Text Index for' - ' entity %s', entity.eid, exc_info=True) + source.fti_unindex_entity(session, entity.eid) + for container in entity.fti_containers(): + if still_fti or container is not entity: + source.fti_unindex_entity(session, entity.eid) + source.fti_index_entity(session, container) if len(to_reindex): # Transaction have already been committed session.pool.commit()