MCPcopy Index your code
hub / github.com/RustPython/RustPython / handle_error

Method handle_error

Lib/socketserver.py:372–383  ·  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

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

Callers 3

process_requestMethod · 0.45

Calls 2

print_excMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected