mirror of
https://github.com/django/django.git
synced 2024-12-26 02:56:25 +00:00
Forgotten import in [16708]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16709 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7c657b2416
commit
0037ca44d6
@ -19,6 +19,7 @@ from django.utils.log import getLogger
|
|||||||
try:
|
try:
|
||||||
import psycopg2 as Database
|
import psycopg2 as Database
|
||||||
import psycopg2.extensions
|
import psycopg2.extensions
|
||||||
|
import psycopg2.Error
|
||||||
except ImportError, e:
|
except ImportError, e:
|
||||||
from django.core.exceptions import ImproperlyConfigured
|
from django.core.exceptions import ImproperlyConfigured
|
||||||
raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
|
raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
|
||||||
|
Loading…
Reference in New Issue
Block a user