From ab45bbbb020e60d691f1f6d421726f17990abfe7 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 24 Nov 2005 03:41:49 +0000 Subject: [PATCH] new-admin: Changed runtests.py not to display full exception if test database can't be created git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@1391 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/runtests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/runtests.py b/tests/runtests.py index 9aa96f20fc..fbe20807ce 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -100,8 +100,7 @@ class TestRunner: self.output(1, "Creating test database") try: cursor.execute("CREATE DATABASE %s" % TEST_DATABASE_NAME) - except Exception, e: - self.output(0, "There was an error creating the test database:%s " % str(e)) + except: confirm = raw_input("The test database, %s, already exists. Type 'yes' to delete it, or 'no' to cancel: " % TEST_DATABASE_NAME) if confirm == 'yes': cursor.execute("DROP DATABASE %s" % TEST_DATABASE_NAME)