--- 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)