mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-01 18:35:41 +00:00
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.
This commit is contained in:
@ -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'] + ' - '):
|
||||
|
Reference in New Issue
Block a user