MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / handle_error

Method handle_error

src/network/asyncore_pollchoose.py:764–782  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

762 self.handle_expt()
763
764 def handle_error(self):
765 nil, t, v, tbinfo = compact_traceback()
766
767 # sometimes a user repr method will crash.
768 try:
769 self_repr = repr(self)
770 except:
771 self_repr = '<__repr__(self) failed for object at %0x>' % id(self)
772
773 self.log_info(
774 'uncaptured python exception, closing channel %s (%s:%s %s)' % (
775 self_repr,
776 t,
777 v,
778 tbinfo
779 ),
780 'error'
781 )
782 self.handle_close()
783
784 def handle_expt(self):
785 self.log_info('unhandled incoming priority event', 'warning')

Callers 4

readFunction · 0.80
writeFunction · 0.80
_exceptionFunction · 0.80
readwriteFunction · 0.80

Calls 3

log_infoMethod · 0.95
handle_closeMethod · 0.95
compact_tracebackFunction · 0.85

Tested by

no test coverage detected