protocol: fail gracefully on cancellation

This commit is contained in:
Roman Zeyde
2016-03-12 20:42:14 +02:00
parent ea88f425f5
commit 1022e54d6a
3 changed files with 5 additions and 4 deletions

View File

@@ -55,8 +55,6 @@ def handle_connection(conn, handler):
msg = util.read_frame(conn)
reply = handler.handle(msg=msg)
util.send(conn, reply)
except IOError as e:
log.error('I/O error: %s', e)
except EOFError:
log.debug('goodbye agent')
except Exception as e: # pylint: disable=broad-except