[IMP]:moved the logger exception before raise

bzr revid: nch@tinyerp.com-20110513122604-2ewsy6mcyghyci9f
This commit is contained in:
Naresh (OpenERP) 2011-05-13 17:56:04 +05:30
parent 6c210e6290
commit a94ccb1faf
1 changed files with 1 additions and 1 deletions

View File

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