1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

Refs #23919 -- Removed __traceback__ setting needed for Python 2.

Partially reverted refs #25761 and refs #16245.
This commit is contained in:
Tim Graham
2017-01-24 08:31:58 -05:00
committed by GitHub
parent e5c2e43cc8
commit 435e4bf38e
2 changed files with 1 additions and 7 deletions

View File

@@ -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):