From 14f6fabe0a623e1347edb2a4e67de6e63346055c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 9 May 2016 13:59:50 -0400 Subject: [PATCH] Do not trigger AttributeError on Null event In the scenario where event is present but 'None', handle the situation more gracefully, by ignoring it's existance. --- confluent_client/bin/nodeeventlog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_client/bin/nodeeventlog b/confluent_client/bin/nodeeventlog index b204c5be..9c026931 100644 --- a/confluent_client/bin/nodeeventlog +++ b/confluent_client/bin/nodeeventlog @@ -53,7 +53,7 @@ def format_event(evt): dscparts.append(evt['component_type']) if 'component' in evt and evt['component'] is not None: dscparts.append(evt['component']) - if 'event' in evt: + if 'event' in evt and evt['event']: evttext = evt['event'] try: if evttext.startswith(evt['component'] + ' - '):