summaryrefslogtreecommitdiff
path: root/django/utils/autoreload.py
diff options
context:
space:
mode:
authorNicolas Delaby <nicolas@noa.one>2017-11-23 17:18:03 +0100
committerTim Graham <timograham@gmail.com>2017-11-28 18:55:23 -0500
commit746caf3ef821dbf7588797cb2600fa81b9df9d1d (patch)
tree1007535c32eb1cdd044a4d0a31118e70dec75dd4 /django/utils/autoreload.py
parent7a6fbf36b1fdb8978ea0842075ccce83bcd63789 (diff)
Fixed #28837 -- Fixed test client crash if an exception with more than one arg is raised.
Also removed usage of the problematic pattern elsewhere. Regression in 6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba.
Diffstat (limited to 'django/utils/autoreload.py')
-rw-r--r--django/utils/autoreload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py
index d3124e8751..ec144c5a17 100644
--- a/django/utils/autoreload.py
+++ b/django/utils/autoreload.py
@@ -245,7 +245,7 @@ def check_errors(fn):
def raise_last_exception():
global _exception
if _exception is not None:
- raise _exception[0](_exception[1]).with_traceback(_exception[2])
+ raise _exception[1]
def ensure_echo_on():