server: don't crash after single exception

This commit is contained in:
Roman Zeyde
2016-01-08 20:46:49 +02:00
parent fb0d0a5f61
commit 33a6951a96
2 changed files with 6 additions and 2 deletions

View File

@@ -46,6 +46,8 @@ def handle_connection(conn, handler):
util.send(conn, reply)
except EOFError:
log.debug('goodbye agent')
except Exception as e: # pylint: disable=broad-except
log.warning('error: %s', e, exc_info=True)
def retry(func, exception_type, quit_event):