﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24663	DEBUG view AttributeError on exception value.__traceback__ in python2	fero	fero	"While i was trying to reproduce #24539, in an ""add"" operation from the admin interface I get:

""A server error occurred.  Please contact the administrator.""

Looking at the runserver standard output I see:

{{{
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/fero/src/test/django/django/contrib/staticfiles/handlers.py"", line 63, in __call__
    return self.application(environ, start_response)
  File ""/home/fero/src/test/django/django/core/handlers/wsgi.py"", line 177, in __call__
    response = self.get_response(request)
  File ""/home/fero/src/test/django/django/core/handlers/base.py"", line 217, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File ""/home/fero/src/test/django/django/core/handlers/base.py"", line 260, in handle_uncaught_exception
    return debug.technical_500_response(request, *exc_info)
  File ""/home/fero/src/test/django/django/views/debug.py"", line 96, in technical_500_response
    html = reporter.get_traceback_html()
  File ""/home/fero/src/test/django/django/views/debug.py"", line 380, in get_traceback_html
    c = Context(self.get_traceback_data(), use_l10n=False)
  File ""/home/fero/src/test/django/django/views/debug.py"", line 325, in get_traceback_data
    frames = self.get_traceback_frames()
  File ""/home/fero/src/test/django/django/views/debug.py"", line 456, in get_traceback_frames
    tb = self.tb if not exceptions else exc_value.__traceback__
AttributeError: 'IntegrityError' object has no attribute '__traceback__'
}}}

It seems to me a very weird bug in the debug view. I am doing a sprint at pycon6 in Italy so I have shortly discussed with the sprint master and he agreed with me that this bug definitely worth to be reported.

Oh guys what a raw impact in dealing with the master!
Is it a release blocker bug? I think so
I hope I have classified it well, I have tried to setup as many ticket fields as possible.
I get this assigned to me today if you don't mind...

I keep you up-to-date


"	Bug	closed	Core (Other)	dev	Release blocker	duplicate	debugview debug template_debug		Unreviewed	0	0	0	0	1	0
