diff options
| author | Tim Graham <timograham@gmail.com> | 2017-02-01 19:38:25 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-02-01 19:48:27 -0500 |
| commit | bc95e6a0bf7400688887a963b659aeb8f91ba035 (patch) | |
| tree | aaa049d4caacc2eacace80d594662e5f412ae4a4 | |
| parent | d43f8478478c333ed8b7e499abef17a86363d61c (diff) | |
[1.11.x] Removed ExceptionReporter support for string exceptions.
Reverted refs #6423 since raising string exceptions is prohibited
since Python 2.5.
Backport of 0205e04ce7a554a7b9b27b412288cc6a0e75e48f from master
| -rw-r--r-- | django/views/debug.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/django/views/debug.py b/django/views/debug.py index 0345859c74..af03882e77 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -247,11 +247,6 @@ class ExceptionReporter(object): self.template_does_not_exist = False self.postmortem = None - # Handle deprecated string exceptions - if isinstance(self.exc_type, six.string_types): - self.exc_value = Exception('Deprecated String Exception: %r' % self.exc_type) - self.exc_type = type(self.exc_value) - def get_traceback_data(self): """Return a dictionary containing traceback information.""" if self.exc_type and issubclass(self.exc_type, TemplateDoesNotExist): |
