X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fextract_sdnc_reply.py;fp=test%2Fcommon%2Fextract_sdnc_reply.py;h=9158edcb601a813fa14d0d5271727069a854a324;hb=70e878f1b5a558baaaa5ab5885a039ed96c9f8d5;hp=cb80e5e20a0ebdf699dd48d52bd7ca5561eb580b;hpb=27f7a7f03c9b3a91c5d5bda273d4bd1017ddf892;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: