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