(*args, **kwargs)
| 112 | |
| 113 | def handle_exit(self, f): |
| 114 | def wrapper(*args, **kwargs): |
| 115 | try: |
| 116 | return f(*args, **kwargs) |
| 117 | except urwid.ExitMainLoop: |
| 118 | # This is our change. |
| 119 | self.reactor.stop() |
| 120 | except: |
| 121 | # This is the same as in urwid. |
| 122 | # We are obviously not supposed to ever hit this. |
| 123 | print(sys.exc_info()) |
| 124 | self._exc_info = sys.exc_info() |
| 125 | self.reactor.crash() |
| 126 | |
| 127 | return wrapper |
| 128 |
nothing calls this directly
no outgoing calls
no test coverage detected