[FIX] Import : Any exception should be raised in well-manner
authorJay (Open ERP) <jvo@tinyerp.com>
Wed, 12 May 2010 12:11:08 +0000 (17:41 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Wed, 12 May 2010 12:11:08 +0000 (17:41 +0530)
bzr revid: jvo@tinyerp.com-20100512121108-nun18cptfdjuxuqu

bin/osv/orm.py

index e5a417c..21e680f 100644 (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