v1.1.30: fix json.loads('') in _resolve_ref_svc

This commit is contained in:
2026-07-29 13:43:30 +04:00
parent 0092a4a0e3
commit b4980aed76
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -291,7 +291,12 @@ def _resolve_ref_svc(client, cfs_params, params):
if not isinstance(dd, dict):
continue
pid = str(p["svcOperationCfsParamId"])
user_val = json.loads(params.get(pid, "{}")) if pid in params else {}
user_val = {}
if pid in params:
try:
user_val = json.loads(params[pid]) if params[pid] else {}
except (json.JSONDecodeError, ValueError):
user_val = {}
for sk, sv in dd.items():
ref_id = sv.get("refSvcId")
if not ref_id: