mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +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()
|
db.db.rollback()
|
||||||
except UnboundLocalError:
|
except UnboundLocalError:
|
||||||
pass
|
pass
|
||||||
raise
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
db.db.commit()
|
db.db.commit()
|
||||||
init.args = ''
|
init.args = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user