Permalink
Browse files

Merge pull request #460 from JanBednarik/ticket_19162

Fixed #19162 -- Wrong indentation.
  • Loading branch information...
2 parents 6a64822 + 4cceb5c commit 11a4b6d9239471b3675900f3019f698a98acf590 @aaugustin aaugustin committed Oct 22, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 django/db/backends/sqlite3/creation.py
@@ -56,11 +56,11 @@ def _create_test_db(self, verbosity, 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)
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)

0 comments on commit 11a4b6d

Please sign in to comment.