v1.1.30: fix json.loads('') in _resolve_ref_svc
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user