Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve developer guide
[nonrtric.git]
/
test
/
common
/
extract_sdnc_reply.py
diff --git
a/test/common/extract_sdnc_reply.py
b/test/common/extract_sdnc_reply.py
index
cb80e5e
..
9158edc
100644
(file)
--- 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'])
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:
print(resp)
except Exception as e: