From c1e47a043442b49fde92596dc45ff7c3484ddc9c Mon Sep 17 00:00:00 2001 From: st1020 Date: Wed, 15 Nov 2023 14:04:05 +0800 Subject: [PATCH] fix: method pool format error --- dongtai_common/engine/compatibility.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dongtai_common/engine/compatibility.py b/dongtai_common/engine/compatibility.py index 7019f8e36..097b6dcb4 100644 --- a/dongtai_common/engine/compatibility.py +++ b/dongtai_common/engine/compatibility.py @@ -24,6 +24,10 @@ def method_pool_3_to_2(dic: dict) -> dict: dic["taintPosition"]["target"] = [] for pv in dic["parameterValues"]: pdict[pv["index"]] = pv["value"] + if "objValue" not in dic: + dic["objValue"] = "" + if "retValue" not in dic: + dic["retValue"] = "" sourceValues = [] targetValues = [] for position in dic["taintPosition"]["source"]: