#23643: Have debug page show "During handling of this exception, another 
exception
occurred.."
---------------------------------+--------------------------------------
     Reporter:  cool-RR          |                    Owner:  tricoder42
         Type:  New feature      |                   Status:  new
    Component:  Core (Other)     |                  Version:  master
     Severity:  Release blocker  |               Resolution:
     Keywords:                   |             Triage Stage:  Accepted
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Changes (by timgraham):

 * status:  closed => new
 * has_patch:  1 => 0
 * resolution:  fixed =>
 * severity:  Normal => Release blocker


Comment:

 Ran into a crash (Python 2 only) when a view raised an `IntegrityError`:
 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
     self.result = application(self.environ, self.start_response)
   File "/home/tim/code/django/django/contrib/staticfiles/handlers.py",
 line 63, in __call__
     return self.application(environ, start_response)
   File "/home/tim/code/django/django/core/handlers/wsgi.py", line 177, in
 __call__
     response = self.get_response(request)
   File "/home/tim/code/django/django/core/handlers/base.py", line 218, in
 get_response
     response = self.handle_uncaught_exception(request, resolver,
 sys.exc_info())
   File "/home/tim/code/django/django/core/handlers/base.py", line 261, in
 handle_uncaught_exception
     return debug.technical_500_response(request, *exc_info)
   File "/home/tim/code/django/django/views/debug.py", line 97, in
 technical_500_response
     html = reporter.get_traceback_html()
   File "/home/tim/code/django/django/views/debug.py", line 387, in
 get_traceback_html
     c = Context(self.get_traceback_data(), use_l10n=False)
   File "/home/tim/code/django/django/views/debug.py", line 332, in
 get_traceback_data
     frames = self.get_traceback_frames()
   File "/home/tim/code/django/django/views/debug.py", line 503, in
 get_traceback_frames
     tb = self.tb if not exceptions else exc_value.__traceback__
 AttributeError: 'IntegrityError' object has no attribute '__traceback__'
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23643#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.270c76af47a6b1e55a07a43592436b50%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to