[FIX] restore proper exception context and logging for test-continue

bzr revid: odo@openerp.com-20100503230519-vc4bxt8y2j87p5qf
This commit is contained in:
Olivier Dony
2010-05-04 00:05:19 +01:00
parent e2f40f8300
commit 0fb50cd625
+2 -2
View File
@@ -645,10 +645,10 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, **kwargs):
_load_data(cr, module_name, id_map, mode, 'test')
except Exception, e:
if tools.config.options['test-continue']:
logger.notifyChannel('ERROR', netsvc.LOG_TEST, str(e))
logger.notifyChannel('ERROR', netsvc.LOG_TEST, e)
pass
else:
raise Exception
raise
finally:
if tools.config.options['test-rollback']:
cr.rollback()