[dataimport] propagate stack stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 04 Apr 2011 14:49:39 +0200
branchstable
changeset 7170 32b5d9d43a7e
parent 7163 d6d905d0344f
child 7171 4297be67bbe4
[dataimport] propagate stack
dataimport.py
--- a/dataimport.py	Fri Apr 01 14:26:18 2011 +0200
+++ b/dataimport.py	Mon Apr 04 14:49:39 2011 +0200
@@ -185,7 +185,7 @@
                 if res[dest] is None:
                     break
         except ValueError, err:
-            raise ValueError('error with %r field: %s' % (src, err))
+            raise ValueError('error with %r field: %s' % (src, err)), None, sys.exc_info()[-1]
     return res
 
 # user interactions ############################################################