summaryrefslogtreecommitdiff
path: root/django/db
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-24 08:31:58 -0500
committerGitHub <noreply@github.com>2017-01-24 08:31:58 -0500
commit435e4bf38e97255acd97eacadeb8fe312ba97aff (patch)
treef5d66a7aa827aa41e9ee880c4b5586a4b099a17d /django/db
parente5c2e43cc832028a974399af07a1c3ba6afa2467 (diff)
Refs #23919 -- Removed __traceback__ setting needed for Python 2.
Partially reverted refs #25761 and refs #16245.
Diffstat (limited to 'django/db')
-rw-r--r--django/db/utils.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/db/utils.py b/django/db/utils.py
index 7ef57fd8a3..dfdeff9c51 100644
--- a/django/db/utils.py
+++ b/django/db/utils.py
@@ -83,8 +83,6 @@ class DatabaseErrorWrapper:
if issubclass(exc_type, db_exc_type):
dj_exc_value = dj_exc_type(*exc_value.args)
dj_exc_value.__cause__ = exc_value
- if not hasattr(exc_value, '__traceback__'):
- exc_value.__traceback__ = traceback
# Only set the 'errors_occurred' flag for errors that may make
# the connection unusable.
if dj_exc_type not in (DataError, IntegrityError):