Ticket #6423: views_debug_string_exceptions.diff
| File views_debug_string_exceptions.diff, 0.6 kB (added by guettli, 1 year ago) |
|---|
-
django/views/debug.py
old new 73 73 template_info = None 74 74 template_does_not_exist = False 75 75 loader_debug_info = None 76 77 # Handle deprecated string exceptions 78 if isinstance(exc_type, basestring): 79 exc_value = Exception('Deprecated String Exception: %r' % exc_type) 80 exc_type = type(exc_value) 81 76 82 if issubclass(exc_type, TemplateDoesNotExist): 77 83 from django.template.loader import template_source_loaders 78 84 template_does_not_exist = True
