mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
new-admin: Changed django.core.management.init to sys.exit(1) instead of raise on error
git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@1389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
942d02a885
commit
7ee9f5c7c5
@ -367,7 +367,7 @@ def init():
|
||||
db.db.rollback()
|
||||
except UnboundLocalError:
|
||||
pass
|
||||
raise
|
||||
sys.exit(1)
|
||||
else:
|
||||
db.db.commit()
|
||||
init.args = ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user