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

Method handle_error

Lib/socketserver.py:369–380  ·  view source on GitHub ↗

Handle an error gracefully. May be overridden. The default is to print a traceback and continue.

(self, request, client_address)

Source from the content-addressed store, hash-verified

367 pass
368
369 def handle_error(self, request, client_address):
370 """Handle an error gracefully. May be overridden.
371
372 The default is to print a traceback and continue.
373
374 """
375 print('-'*40, file=sys.stderr)
376 print('Exception occurred during processing of request from',
377 client_address, file=sys.stderr)
378 import traceback
379 traceback.print_exc()
380 print('-'*40, file=sys.stderr)
381
382 def __enter__(self):
383 return self

Callers 3

process_requestMethod · 0.45

Calls 1

print_excMethod · 0.80

Tested by

no test coverage detected