summaryrefslogtreecommitdiff
path: root/django/db/utils.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2017-01-07 20:13:29 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-22 20:08:04 +0100
commit6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba (patch)
tree4084a5083b9e44ea90e9a119581d09efc9d41228 /django/db/utils.py
parentd170c63351944fd91b2206d10f89e7ff75b53b76 (diff)
Refs #23919 -- Replaced six.reraise by raise
Diffstat (limited to 'django/db/utils.py')
-rw-r--r--django/db/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/db/utils.py b/django/db/utils.py
index a35de01ffa..7ef57fd8a3 100644
--- a/django/db/utils.py
+++ b/django/db/utils.py
@@ -5,7 +5,6 @@ from threading import local
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
-from django.utils import six
from django.utils.functional import cached_property
from django.utils.module_loading import import_string
@@ -90,7 +89,7 @@ class DatabaseErrorWrapper:
# the connection unusable.
if dj_exc_type not in (DataError, IntegrityError):
self.wrapper.errors_occurred = True
- six.reraise(dj_exc_type, dj_exc_value, traceback)
+ raise dj_exc_value.with_traceback(traceback)
def __call__(self, func):
# Note that we are intentionally not using @wraps here for performance