diff -r 17d90a72f580 django/core/management/commands/loaddata.py
a
|
b
|
|
161 | 161 | transaction.rollback() |
162 | 162 | transaction.leave_transaction_management() |
163 | 163 | if show_traceback: |
164 | | import traceback |
165 | 164 | traceback.print_exc() |
166 | 165 | else: |
167 | 166 | sys.stderr.write( |
168 | 167 | self.style.ERROR("Problem installing fixture '%s': %s\n" % |
169 | | (full_path, traceback.format_exc()))) |
| 168 | (full_path, ''.join(traceback.format_exception(sys.exc_type, |
| 169 | sys.exc_value, sys.exc_traceback))))) |
170 | 170 | return |
171 | 171 | fixture.close() |
172 | 172 | |