[FIX] Import : Any exception should be raised in well-manner
bzr revid: jvo@tinyerp.com-20100512121108-nun18cptfdjuxuqu
This commit is contained in:
parent
e16e37c66f
commit
50747906e7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue