diff options
| author | Tim Graham <timograham@gmail.com> | 2017-01-24 08:31:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-24 08:31:58 -0500 |
| commit | 435e4bf38e97255acd97eacadeb8fe312ba97aff (patch) | |
| tree | f5d66a7aa827aa41e9ee880c4b5586a4b099a17d /django/db | |
| parent | e5c2e43cc832028a974399af07a1c3ba6afa2467 (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.py | 2 |
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): |
