From 24817ab3c413a60c35c0130461e1d84b3f2ef303 Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Thu, 11 Mar 2021 00:53:41 -0800 Subject: [PATCH] base_profile.py: fixes None error if providing missing element Signed-off-by: Jed Reynolds --- py-json/base_profile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py-json/base_profile.py b/py-json/base_profile.py index 6ed02309..78b88010 100644 --- a/py-json/base_profile.py +++ b/py-json/base_profile.py @@ -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)