summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-08-10 04:48:47 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-08-10 04:48:47 +0000
commit7bac5520690b8df041e705862096a969f76975fc (patch)
tree8f9218b08915c8df485a44ac66a97f8bb3eccc7e
parent024e68e260a70281d6f07e3a562e24140d3ecc2f (diff)
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
-rw-r--r--django/core/db/backends/mysql.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/core/db/backends/mysql.py b/django/core/db/backends/mysql.py
index 939d3c2df7..4a54a277e4 100644
--- a/django/core/db/backends/mysql.py
+++ b/django/core/db/backends/mysql.py
@@ -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):