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

Method handle_error

Lib/test/support/asyncore.py:472–490  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

470 self.handle_expt()
471
472 def handle_error(self):
473 nil, t, v, tbinfo = compact_traceback()
474
475 # sometimes a user repr method will crash.
476 try:
477 self_repr = repr(self)
478 except:
479 self_repr = '<__repr__(self) failed for object at %0x>' % id(self)
480
481 self.log_info(
482 'uncaptured python exception, closing channel %s (%s:%s %s)' % (
483 self_repr,
484 t,
485 v,
486 tbinfo
487 ),
488 'error'
489 )
490 self.handle_close()
491
492 def handle_expt(self):
493 self.log_info('unhandled incoming priority event', 'warning')

Callers 6

handle_readMethod · 0.45
initiate_sendMethod · 0.45
readFunction · 0.45
writeFunction · 0.45
_exceptionFunction · 0.45
readwriteFunction · 0.45

Calls 5

log_infoMethod · 0.95
handle_closeMethod · 0.95
compact_tracebackFunction · 0.85
reprFunction · 0.85
idFunction · 0.85

Tested by

no test coverage detected