Kaydet (Commit) 714490ba authored tarafından Jacob Kaplan-Moss's avatar Jacob Kaplan-Moss

Fixed a bug introduced by [9527] -- empty/invalid fixtures were no longer being reported.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 4aa97f5c
......@@ -160,7 +160,7 @@ class Command(BaseCommand):
(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 @@ class Command(BaseCommand):
transaction.rollback()
transaction.leave_transaction_management()
return
except Exception, e:
if verbosity > 1:
print "No %s fixture '%s' in %s." % \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment