(self)
| 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') |
no test coverage detected