Django

Code

Changeset 7199

Show
Ignore:
Timestamp:
03/07/08 07:53:49 (6 months ago)
Author:
russellm
Message:

Fixed #6420 -- Corrected the handling of the --traceback option in loaddata. Thanks, Grzegorz Lukasik <hauserx@gmail.com>.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/management/commands/loaddata.py

    r7145 r7199  
    109109                                transaction.leave_transaction_management() 
    110110                                if show_traceback: 
    111                                     raise 
    112                                 sys.stderr.write( 
    113                                     self.style.ERROR("Problem installing fixture '%s': %s\n" % 
    114                                          (full_path, str(e)))) 
     111                                    import traceback 
     112                                    traceback.print_exc() 
     113                                else: 
     114                                    sys.stderr.write( 
     115                                        self.style.ERROR("Problem installing fixture '%s': %s\n" % 
     116                                             (full_path, str(e)))) 
    115117                                return 
    116118                            fixture.close()