server/repository.py
branchstable
changeset 7885 9454b7ef5ae4
parent 7884 35d2e2f4e10a
child 7887 42a0b7398d31
--- a/server/repository.py	Thu Sep 29 12:55:20 2011 +0200
+++ b/server/repository.py	Thu Sep 29 12:55:28 2011 +0200
@@ -1152,6 +1152,8 @@
                     session.execute(rql, {'x': eid, 'seid': scleanup},
                                     build_descr=False)
                 except Exception:
+                    if self.config.mode == 'test':
+                        raise
                     self.exception('error while cascading delete for entity %s '
                                    'from %s. RQL: %s', entity, sourceuri, rql)
         self.system_source.delete_info_multi(session, [entity], sourceuri)
@@ -1182,6 +1184,8 @@
                 try:
                     session.execute(rql, {'seid': scleanup}, build_descr=False)
                 except Exception:
+                    if self.config.mode == 'test':
+                        raise
                     self.exception('error while cascading delete for entity %s '
                                    'from %s. RQL: %s', entities, sourceuri, rql)
         self.system_source.delete_info_multi(session, entities, sourceuri)