wsgi/handler.py
changeset 8695 358d8bed9626
parent 8593 41259e1f9d48
child 9030 c1d5e8ca15ea
child 9287 e70c8c70e344
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
   116         if self.base_url is None:
   116         if self.base_url is None:
   117             self.base_url = self.config._base_url = req.base_url()
   117             self.base_url = self.config._base_url = req.base_url()
   118         try:
   118         try:
   119             path = req.path
   119             path = req.path
   120             result = self.appli.handle_request(req, path)
   120             result = self.appli.handle_request(req, path)
   121         except DirectResponse, ex:
   121         except DirectResponse as ex:
   122             return ex.response
   122             return ex.response
   123         return WSGIResponse(req.status_out, req, result)
   123         return WSGIResponse(req.status_out, req, result)
   124 
   124 
   125 
   125 
   126     def __call__(self, environ, start_response):
   126     def __call__(self, environ, start_response):