changeset 10590 | 7629902e7554 |
parent 10589 | 7c23b7de2b8d |
child 10663 | 54b8a1f249fb |
--- a/dataimport/deprecated.py Fri Sep 11 14:52:09 2015 +0200 +++ b/dataimport/deprecated.py Fri Sep 11 15:29:25 2015 +0200 @@ -167,7 +167,9 @@ if res[dest] is None: break except ValueError as err: - raise ValueError('error with %r field: %s' % (src, err)), None, sys.exc_info()[-1] + exc = ValueError('error with %r field: %s' % (src, err)) + exc.__traceback__ = sys.exc_info()[-1] + raise exc return res