﻿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
21536	the handler swallows exception	wuhaochi@…	nobody	"line /Library/Python/2.7/site-packages/Django-1.6-py2.7.egg/django/core/handlers/base.py : 197.
the code is this:

{{{
        except: # Handle everything else.                                                                                                                                         
            # Get the exception info now, in case another exception is thrown later.                                                                                              
            signals.got_request_exception.send(sender=self.__class__, request=request)                                                                                            
            response = self.handle_uncaught_exception(request, resolver, sys.exc_info())     
}}}
 
And this haunted me quite a while when I just made a syntax mistake in my view function. Since I was reported ""Server Error 500 27""
Internal Server error. But why?
When I add this block, I find the answer of my error.
  
{{{
      except Exception as e:                                                                                                                                                    
            import traceback                                                                                                                                                      
            traceback.print_exc(e)                                                                                                                                                
                                                                                                                                                                                  
        except: # Handle everything else.                                                                                                                                         
            # Get the exception info now, in case another exception is thrown later.                                                                                              
            signals.got_request_exception.send(sender=self.__class__, request=request)                                                                                            
            response = self.handle_uncaught_exception(request, resolver, sys.exc_info())                                                                                         
}}}
 
"	Cleanup/optimization	closed	Core (Other)	1.6	Normal	worksforme			Unreviewed	0	0	0	0	0	0
