From bf82a1c7219195fe3b702e65d42b2a35fbfe6b78 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:24:26 +0800 Subject: [PATCH] fix: Operator write failed (#13677) Co-authored-by: feng <1304903146@qq.com> --- apps/audits/handler.py | 2 ++ 1 file changed, 2 insertions(+) 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):