Ticket #6420: show_traceback.patch
File show_traceback.patch, 1.1 KB (added by , 17 years ago) |
---|
-
core/management/commands/loaddata.py
102 102 transaction.rollback() 103 103 transaction.leave_transaction_management() 104 104 if show_traceback: 105 raise 106 sys.stderr.write( 107 self.style.ERROR("Problem installing fixture '%s': %s\n" % 108 (full_path, str(e)))) 105 import traceback 106 traceback.print_exc() 107 else: 108 sys.stderr.write( 109 self.style.ERROR("Problem installing fixture '%s': %s\n" % 110 (full_path, str(e)))) 109 111 return 110 112 fixture.close() 111 113 except: