X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fextract_sdnc_reply.py;h=9158edcb601a813fa14d0d5271727069a854a324;hb=bf3700b1064ec3526af205cab454bd1964ce8650;hp=cb80e5e20a0ebdf699dd48d52bd7ca5561eb580b;hpb=7a7a13a47eeebf9a61fa84d14af59b1cbe1598bc;p=nonrtric.git diff --git a/test/common/extract_sdnc_reply.py b/test/common/extract_sdnc_reply.py index cb80e5e2..9158edcb 100644 --- a/test/common/extract_sdnc_reply.py +++ b/test/common/extract_sdnc_reply.py @@ -32,8 +32,12 @@ try: resp=status if ( 'body' in output.keys()): body=str(output['body']) - bodyJson=json.loads(body) - resp=str(json.dumps(bodyJson))+str(status) + try: + bodyJson=json.loads(body) + resp=str(json.dumps(bodyJson))+str(status) + except Exception as e1: + resp=body+str(status) + print(resp) except Exception as e: