From 0fb50cd625e30eee277d16b4c4a4413c7a79049a Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 4 May 2010 00:05:19 +0100 Subject: [PATCH] [FIX] restore proper exception context and logging for test-continue bzr revid: odo@openerp.com-20100503230519-vc4bxt8y2j87p5qf --- bin/addons/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 53fe7068aa5..82761d647bd 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -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()