base_profile.py: fixes None error if providing missing element

Signed-off-by: Jed Reynolds <jed@candelatech.com>
This commit is contained in:
Jed Reynolds
2021-03-11 00:53:41 -08:00
parent 44c65a4951
commit 24817ab3c4

View File

@@ -60,6 +60,8 @@ class BaseProfile:
if audit_list is None:
self.parent_realm.logg(message)
for item in audit_list:
if (item is None):
continue
message += ("\n" + pprint.pformat(item, indent=4))
self.parent_realm.logg(message)