From a94ccb1fafff6b2344f92e1b7a469507f67f5bb0 Mon Sep 17 00:00:00 2001 From: "Naresh (OpenERP)" Date: Fri, 13 May 2011 17:56:04 +0530 Subject: [PATCH] [IMP]:moved the logger exception before raise bzr revid: nch@tinyerp.com-20110513122604-2ewsy6mcyghyci9f --- openerp/tools/yaml_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/tools/yaml_import.py b/openerp/tools/yaml_import.py index 8860e12a46a..b4700aef34c 100644 --- a/openerp/tools/yaml_import.py +++ b/openerp/tools/yaml_import.py @@ -178,12 +178,12 @@ class YamlInterpreter(object): _, id = self.pool.get('ir.model.data').get_object_reference(self.cr, self.uid, module, checked_xml_id) self.id_map[xml_id] = id except ValueError, e: + self.logger.exception(e) raise YamlImportException(""" This Yaml file appears to depend on data that is missing. This often happens for tests that belong to a module's test suite and depend on each other (they are supposed to be executed in batch, not standalone). You might solve the issue by first forcing the other tests to commit their changes using --test-commit during a module update.""") - self.logger.exception(e) return id