diff --git a/import_export/resources.py b/import_export/resources.py index bf910e946..6ad0731f5 100644 --- a/import_export/resources.py +++ b/import_export/resources.py @@ -341,7 +341,7 @@ def import_data(self, dataset, dry_run=False, raise_errors=False, except Exception as e: logging.exception(e) tb_info = traceback.format_exc() - result.base_errors.append(Error(repr(e), tb_info)) + result.base_errors.append(Error(e, tb_info)) if raise_errors: if use_transactions: savepoint_rollback(sp1)