(self)
| 460 | self.handle_expt() |
| 461 | |
| 462 | def handle_error(self): |
| 463 | nil, t, v, tbinfo = compact_traceback() |
| 464 | |
| 465 | # sometimes a user repr method will crash. |
| 466 | try: |
| 467 | self_repr = repr(self) |
| 468 | except: |
| 469 | self_repr = '<__repr__(self) failed for object at %0x>' % id(self) |
| 470 | |
| 471 | self.log_info( |
| 472 | 'uncaptured python exception, closing channel %s (%s:%s %s)' % ( |
| 473 | self_repr, |
| 474 | t, |
| 475 | v, |
| 476 | tbinfo |
| 477 | ), |
| 478 | 'error' |
| 479 | ) |
| 480 | self.handle_close() |
| 481 | |
| 482 | def handle_expt(self): |
| 483 | self.log_info('unhandled incoming priority event', 'warning') |
no test coverage detected