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

 * status:  new => assigned
 * has_patch:  0 => 1


Comment:

 1. I've submitted new PR with updated plain-text output
 https://github.com/django/django/pull/4412

 2. I couldn't reproduce the AttributeError. I tried this simple view:

 {{{
 def view(request):
     raise IntegrityError('Error raised')
 }}}

 We could simple replace this line:

 {{{
       tb = self.tb if not exceptions else exc_value.__traceback__
 }}}

 with safer, but longer:

 {{{
         if not exceptions or not hasattr(exc_value, '__traceback__'):
             tb = self.tb
         else:
             tb = exc_value.__traceback__
 }}}

 The point was that `exceptions` should have been already empty in Python
 2, but somewhat it wasn't. Would be great if we could reproduce your
 problem.

--
Ticket URL: <https://code.djangoproject.com/ticket/23643#comment:8>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.06dd1733f2d278e21ce23c21eaf768cb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to