mirror of https://github.com/django/django.git
Merge pull request #460 from JanBednarik/ticket_19162
Fixed #19162 -- Wrong indentation.
This commit is contained in:
commit
11a4b6d923
|
@ -56,11 +56,11 @@ class DatabaseCreation(BaseDatabaseCreation):
|
||||||
if not autoclobber:
|
if not autoclobber:
|
||||||
confirm = input("Type 'yes' if you would like to try deleting the test database '%s', or 'no' to cancel: " % test_database_name)
|
confirm = input("Type 'yes' if you would like to try deleting the test database '%s', or 'no' to cancel: " % test_database_name)
|
||||||
if autoclobber or confirm == 'yes':
|
if autoclobber or confirm == 'yes':
|
||||||
try:
|
try:
|
||||||
os.remove(test_database_name)
|
os.remove(test_database_name)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
sys.stderr.write("Got an error deleting the old test database: %s\n" % e)
|
sys.stderr.write("Got an error deleting the old test database: %s\n" % e)
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
else:
|
else:
|
||||||
print("Tests cancelled.")
|
print("Tests cancelled.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue