summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3/base.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2010-01-10 18:36:20 +0000
committerAdrian Holovaty <adrian@holovaty.com>2010-01-10 18:36:20 +0000
commit5ceed0a05388079118319940acdb2abe4ee01de6 (patch)
treec158b29638a509bef59fbbff164faf2749d35fe4 /django/db/backends/sqlite3/base.py
parentbef891399ec278390ee148b0bb87d4c4140fc4c6 (diff)
Changed a whole bunch of places to raise exception instances instead of old-style raising exception classes plus a comma. Good for the future Python 3 conversion
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/sqlite3/base.py')
-rw-r--r--django/db/backends/sqlite3/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py
index 6f78cf2a4a..000b55f686 100644
--- a/django/db/backends/sqlite3/base.py
+++ b/django/db/backends/sqlite3/base.py
@@ -27,7 +27,7 @@ except ImportError, exc:
exc = e1
else:
module = 'either pysqlite2 or sqlite3 modules (tried in that order)'
- raise ImproperlyConfigured, "Error loading %s: %s" % (module, exc)
+ raise ImproperlyConfigured("Error loading %s: %s" % (module, exc))
DatabaseError = Database.DatabaseError
@@ -157,7 +157,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
settings_dict = self.settings_dict
if not settings_dict['NAME']:
from django.core.exceptions import ImproperlyConfigured
- raise ImproperlyConfigured, "Please fill out the database NAME in the settings module before using the database."
+ raise ImproperlyConfigured("Please fill out the database NAME in the settings module before using the database.")
kwargs = {
'database': settings_dict['NAME'],
'detect_types': Database.PARSE_DECLTYPES | Database.PARSE_COLNAMES,