summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Bednařík <jan.bednarik@gmail.com>2012-10-22 19:23:19 +0200
committerJan Bednařík <jan.bednarik@gmail.com>2012-10-22 19:23:19 +0200
commit4cceb5cb31bb6d36da58672629e8e07b023a857f (patch)
treec45306780c2f7860e7c9b446850663f8cf50d40c
parente70170c2cbc8871f3bc1f585601b831eef0be9dc (diff)
Fixed #19162 -- Wrong indentation.
-rw-r--r--django/db/backends/sqlite3/creation.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/django/db/backends/sqlite3/creation.py b/django/db/backends/sqlite3/creation.py
index c022b56c85..9dacac72e1 100644
--- a/django/db/backends/sqlite3/creation.py
+++ b/django/db/backends/sqlite3/creation.py
@@ -56,11 +56,11 @@ class DatabaseCreation(BaseDatabaseCreation):
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)
if autoclobber or confirm == 'yes':
- try:
- os.remove(test_database_name)
- except Exception as e:
- sys.stderr.write("Got an error deleting the old test database: %s\n" % e)
- sys.exit(2)
+ try:
+ os.remove(test_database_name)
+ except Exception as e:
+ sys.stderr.write("Got an error deleting the old test database: %s\n" % e)
+ sys.exit(2)
else:
print("Tests cancelled.")
sys.exit(1)