diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-01-07 21:42:37 +0000 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-01-07 21:42:37 +0000 |
| commit | cd4686304344529538470481ddd452d2534650ae (patch) | |
| tree | 2191b78df8ae36eec7a3c1567ecfcfd7bda5b9a3 /django | |
| parent | ca187fea88b626508e125e0843c991fe63f8ed95 (diff) | |
Added missing bits of r17352. Refs #17513.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17353 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/mysql/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index 02bdda199b..830808b9d3 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -105,7 +105,7 @@ class CursorWrapper(object): # misclassified and Django would prefer the more logical place. if e[0] in self.codes_for_integrityerror: raise utils.IntegrityError, utils.IntegrityError(*tuple(e)), sys.exc_info()[2] - raise + raise utils.DatabaseError, utils.DatabaseError(*tuple(e)), sys.exc_info()[2] except Database.DatabaseError, e: raise utils.DatabaseError, utils.DatabaseError(*tuple(e)), sys.exc_info()[2] |
