mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #6420 -- Corrected the handling of the --traceback option in loaddata. Thanks, Grzegorz Lukasik <hauserx@gmail.com>.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7199 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -108,10 +108,12 @@ class Command(BaseCommand): | ||||
|                                 transaction.rollback() | ||||
|                                 transaction.leave_transaction_management() | ||||
|                                 if show_traceback: | ||||
|                                     raise | ||||
|                                 sys.stderr.write( | ||||
|                                     self.style.ERROR("Problem installing fixture '%s': %s\n" % | ||||
|                                          (full_path, str(e)))) | ||||
|                                     import traceback | ||||
|                                     traceback.print_exc() | ||||
|                                 else: | ||||
|                                     sys.stderr.write( | ||||
|                                         self.style.ERROR("Problem installing fixture '%s': %s\n" % | ||||
|                                              (full_path, str(e)))) | ||||
|                                 return | ||||
|                             fixture.close() | ||||
|                     except: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user