diff --git a/apps/audits/handler.py b/apps/audits/handler.py index 770ac9661..c64160c4c 100644 --- a/apps/audits/handler.py +++ b/apps/audits/handler.py @@ -120,6 +120,8 @@ class OperatorLogHandler(metaclass=Singleton): encrypt_value = '******' new_data = {} for label, item in dict_item.items(): + if not isinstance(item, (dict,)): + continue value = item.get('value', '') field_name = item.get('name', '') if isinstance(value, bool):