1
0
mirror of https://github.com/django/django.git synced 2025-01-11 02:46:13 +00:00

Changed [459] to use a better interface for the exception

git-svn-id: http://code.djangoproject.com/svn/django/trunk@460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-08-10 04:48:47 +00:00
parent 024e68e260
commit 7bac552069

View File

@ -9,7 +9,6 @@ from django.core.db.dicthelpers import *
import MySQLdb as Database
from MySQLdb.converters import conversions
from MySQLdb.constants import FIELD_TYPE
from _mysql_exceptions import NotSupportedError
import types
DatabaseError = Database.DatabaseError
@ -43,7 +42,7 @@ class DatabaseWrapper:
if self.connection:
try:
self.connection.rollback()
except NotSupportedError:
except Database.NotSupportedError:
pass
def close(self):