Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a bug introduced by [9527] -- empty/invalid fixtures were no lo…

…nger being reported.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 714490ba5170a9181210a8bfce45147fb936d6c1 1 parent 4aa97f5
@jacobian jacobian authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/management/commands/loaddata.py
View
4 django/core/management/commands/loaddata.py
@@ -160,7 +160,7 @@ def read(self):
(full_path, traceback.format_exc())))
return
fixture.close()
-
+
# If the fixture we loaded contains 0 objects, assume that an
# error was encountered during fixture loading.
if objects_in_fixture == 0:
@@ -170,7 +170,7 @@ def read(self):
transaction.rollback()
transaction.leave_transaction_management()
return
-
+
except Exception, e:
if verbosity > 1:
print "No %s fixture '%s' in %s." % \
Please sign in to comment.
Something went wrong with that request. Please try again.