Commit 1e2852a1 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #6420 -- Corrected the handling of the --traceback option in loaddata....

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
parent 7092bcee
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -108,7 +108,9 @@ class Command(BaseCommand):
                                transaction.rollback()
                                transaction.leave_transaction_management()
                                if show_traceback:
                                    raise
                                    import traceback
                                    traceback.print_exc()
                                else:
                                    sys.stderr.write(
                                        self.style.ERROR("Problem installing fixture '%s': %s\n" %
                                             (full_path, str(e))))