mirror of
https://github.com/romanz/amodem.git
synced 2026-04-20 04:56:25 +08:00
protocol: fail gracefully on cancellation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user