[FIX] Import : Any exception should be raised in well-manner

bzr revid: jvo@tinyerp.com-20100512121108-nun18cptfdjuxuqu
This commit is contained in:
Jay (Open ERP) 2010-05-12 17:41:08 +05:30
parent e16e37c66f
commit 50747906e7
1 changed files with 2 additions and 1 deletions

View File

@ -985,7 +985,8 @@ class orm_template(object):
msg = _('Insertion Failed! ' + e[1])
return (-1, res, 'Line ' + str(counter) +' : ' + msg, '' )
#Raising Uncaught exception
raise
return (-1, res, 'Line ' + str(counter) +' : ' + str(e), '' )
for lang in translate:
context2 = context.copy()
context2['lang'] = lang