Esempio n. 1
0
 def wsgi_app(self, environ, start_response):
     try:
         request = handlers.Request(environ)
         response = self.dispatch_request(request)
         return response(environ, start_response)
     except Exception as e:
         request = handlers.Request(environ)
         response = handlers.serve_exception(self.pod, request, e)
         return response(environ, start_response)
Esempio n. 2
0
 def __call__(self, environ, start_response):
     try:
         return self.wsgi_app(environ, start_response)
     except Exception as e:
         request = handlers.Request(environ)
         response = handlers.serve_exception(self.pod, request, e)
         return response(environ, start_response)
Esempio n. 3
0
 def wsgi_app(self, environ, start_response):
     request = handlers.Request(environ)
     response = self.dispatch_request(request)
     return response(environ, start_response)