MCPcopy Index your code
hub / github.com/python/cpython / handle_error

Method handle_error

Lib/wsgiref/handlers.py:385–391  ·  view source on GitHub ↗

Log current error, and send error output to client if possible

(self)

Source from the content-addressed store, hash-verified

383 exc_info = None
384
385 def handle_error(self):
386 """Log current error, and send error output to client if possible"""
387 self.log_exception(sys.exc_info())
388 if not self.headers_sent:
389 self.result = self.error_output(self.environ, self.start_response)
390 self.finish_response()
391 # XXX else: attempt advanced recovery techniques for HTML or text?
392
393 def error_output(self, environ, start_response):
394 """WSGI mini-app to create error output

Callers 1

runMethod · 0.95

Calls 3

log_exceptionMethod · 0.95
error_outputMethod · 0.95
finish_responseMethod · 0.95

Tested by

no test coverage detected