mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Removed ExceptionReporter support for string exceptions.
Reverted refs #6423 since raising string exceptions is prohibited since Python 2.5.
This commit is contained in:
parent
924af638e4
commit
0205e04ce7
@ -246,11 +246,6 @@ class ExceptionReporter:
|
||||
self.template_does_not_exist = False
|
||||
self.postmortem = None
|
||||
|
||||
# Handle deprecated string exceptions
|
||||
if isinstance(self.exc_type, str):
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user