Do not suppress KeyboardInterrupt exceptions

The encompassing application should be responsible for handling the KeyboardInterrupt exception
This commit is contained in:
Marcus Cobden 2013-12-09 09:56:36 +00:00
commit 13ffc8cf7f

View file

@ -167,7 +167,6 @@ class SocketIO(object):
- Omit seconds, i.e. call wait() without arguments, to wait forever.
"""
try:
warning_screen = _yield_warning_screen(seconds)
for elapsed_time in warning_screen:
try:
@ -185,8 +184,6 @@ class SocketIO(object):
except StopIteration:
_log.warn(warning)
self.disconnect()
except KeyboardInterrupt:
pass
def _process_events(self):
for packet in self._transport.recv_packet():