Logo Search packages:      
Sourcecode: zine version File versions  Download package

def zine::application::Zine::handle_server_error (   self,
  request,
  exc_info = None,
  suppress_log = False 
)

Called if a server error happens.  Logs the error and returns a
response with an error message.

Definition at line 1140 of file application.py.

01140                                                                              :
        """Called if a server error happens.  Logs the error and returns a
        response with an error message.
        """
        if not suppress_log:
            log.exception('Exception happened at "%s"' % request.path,
                          'core', exc_info)
        response = render_response('500.html')
        response.status_code = 500
        return response

    def handle_internal_error(self, request, error):


Generated by  Doxygen 1.6.0   Back to index