From c96b5f0270488934f8ccd71e69b20805196c560a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 25 Oct 2018 14:12:15 -0400 Subject: [PATCH] Fix spurious trace on immediate exit confetty When confetty exits without doing anything, it causes sockapi to reference an empty request. Check for that before checking if it is a collective request. --- confluent_server/confluent/sockapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/sockapi.py b/confluent_server/confluent/sockapi.py index 75da4101..ac4c5786 100644 --- a/confluent_server/confluent/sockapi.py +++ b/confluent_server/confluent/sockapi.py @@ -143,7 +143,7 @@ def sessionhdl(connection, authname, skipauth=False, cert=None): cfm = authdata[1] send_data(connection, {'authpassed': 1}) request = tlvdata.recv(connection) - if 'collective' in request and skipauth: + if request and 'collective' in request and skipauth: if not libssl: tlvdata.send( connection,